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 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 toJson() { final Map data = {}; 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; } }