pcastlivetv/lib/models/user_model.dart

40 lines
1.0 KiB
Dart

class UserModel {
int? id;
String? name;
String? companyname;
String? email;
String? channel;
String? usertype;
String? blocked;
String? cancelled;
String? createdby;
UserModel({this.id, this.name, this.companyname, this.email, this.channel, this.usertype, this.blocked, this.cancelled, this.createdby});
UserModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
companyname = json['companyname'];
email = json['email'];
channel = json['channel'];
usertype = json['usertype'];
blocked = json['blocked'];
cancelled = json['cancelled'];
createdby = json['createdby'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['companyname'] = companyname;
data['email'] = email;
data['channel'] = channel;
data['usertype'] = usertype;
data['blocked'] = blocked;
data['cancelled'] = cancelled;
data['createdby'] = createdby;
return data;
}
}