class ChatList { String? msg; int? code; List? data; ChatList({this.msg, this.code, this.data}); ChatList.fromJson(Map json) { msg = json['msg']; code = json['code']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(new Data.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['msg'] = this.msg; data['code'] = this.code; if (this.data != null) { data['data'] = this.data!.map((v) => v.toJson()).toList(); } return data; } } class Data { String? createBy; String? createTime; String? updateBy; String? updateTime; String? remark; int? userId; int? deptId; String? userName; String? nickName; String? email; String? phonenumber; String? sex; String? avatar; String? password; String? status; String? delFlag; String? loginIp; String? loginDate; String? roleIds; String? postIds; String? postNames; String? roleId; String? physicianQualificationCertificatePic; String? medicalPracticingCertificatePic; String? physicianQualificationCertificateNum; String? medicalPracticingCertificateNum; int? showPatient; String? doctorProficient; String? doctorBlurb; String? number; bool? admin; Data( {this.createBy, this.createTime, this.updateBy, this.updateTime, this.remark, this.userId, this.deptId, this.userName, this.nickName, this.email, this.phonenumber, this.sex, this.avatar, this.password, this.status, this.delFlag, this.loginIp, this.loginDate, this.roleIds, this.postIds, this.postNames, this.roleId, this.physicianQualificationCertificatePic, this.medicalPracticingCertificatePic, this.physicianQualificationCertificateNum, this.medicalPracticingCertificateNum, this.showPatient, this.doctorProficient, this.doctorBlurb, this.number, this.admin}); Data.fromJson(Map json) { createBy = json['createBy']; createTime = json['createTime']; updateBy = json['updateBy']; updateTime = json['updateTime']; remark = json['remark']; userId = json['userId']; deptId = json['deptId']; userName = json['userName']; nickName = json['nickName']; email = json['email']; phonenumber = json['phonenumber']; sex = json['sex']; avatar = json['avatar']; password = json['password']; status = json['status']; delFlag = json['delFlag']; loginIp = json['loginIp']; loginDate = json['loginDate']; roleIds = json['roleIds']; postIds = json['postIds']; postNames = json['postNames']; roleId = json['roleId']; physicianQualificationCertificatePic = json['physicianQualificationCertificatePic']; medicalPracticingCertificatePic = json['medicalPracticingCertificatePic']; physicianQualificationCertificateNum = json['physicianQualificationCertificateNum']; medicalPracticingCertificateNum = json['medicalPracticingCertificateNum']; showPatient = json['showPatient']; doctorProficient = json['doctorProficient']; doctorBlurb = json['doctorBlurb']; number = json['number']; admin = json['admin']; } Map toJson() { final Map data = new Map(); data['createBy'] = this.createBy; data['createTime'] = this.createTime; data['updateBy'] = this.updateBy; data['updateTime'] = this.updateTime; data['remark'] = this.remark; data['userId'] = this.userId; data['deptId'] = this.deptId; data['userName'] = this.userName; data['nickName'] = this.nickName; data['email'] = this.email; data['phonenumber'] = this.phonenumber; data['sex'] = this.sex; data['avatar'] = this.avatar; data['password'] = this.password; data['status'] = this.status; data['delFlag'] = this.delFlag; data['loginIp'] = this.loginIp; data['loginDate'] = this.loginDate; data['roleIds'] = this.roleIds; data['postIds'] = this.postIds; data['postNames'] = this.postNames; data['roleId'] = this.roleId; data['physicianQualificationCertificatePic'] = this.physicianQualificationCertificatePic; data['medicalPracticingCertificatePic'] = this.medicalPracticingCertificatePic; data['physicianQualificationCertificateNum'] = this.physicianQualificationCertificateNum; data['medicalPracticingCertificateNum'] = this.medicalPracticingCertificateNum; data['showPatient'] = this.showPatient; data['doctorProficient'] = this.doctorProficient; data['doctorBlurb'] = this.doctorBlurb; data['number'] = this.number; data['admin'] = this.admin; return data; } }