class DoctorListEntity { String? msg; int? code; List? data; DoctorListEntity({this.msg, this.code, this.data}); DoctorListEntity.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; Dept? dept; String? roleIds; String? postIds; String? postNames; String? roleId; String? physicianQualificationCertificatePic; String? medicalPracticingCertificatePic; String? physicianQualificationCertificateNum; String? medicalPracticingCertificateNum; int? showPatient; String? doctorProficient; String? doctorBlurb; int? isFree; String? deptName; int? isCollection; int? receivePatientNum; 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.dept, this.roleIds, this.postIds, this.postNames, this.roleId, this.physicianQualificationCertificatePic, this.medicalPracticingCertificatePic, this.physicianQualificationCertificateNum, this.medicalPracticingCertificateNum, this.showPatient, this.doctorProficient, this.doctorBlurb, this.isFree, this.deptName, this.isCollection, this.receivePatientNum, 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']; dept = json['dept'] != null ? new Dept.fromJson(json['dept']) : null; 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']; isFree = json['isFree']; deptName = json['deptName']; isCollection = json['isCollection']; receivePatientNum = json['receivePatientNum']; 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; if (this.dept != null) { data['dept'] = this.dept!.toJson(); } 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['isFree'] = this.isFree; data['deptName'] = this.deptName; data['isCollection'] = this.isCollection; data['receivePatientNum'] = this.receivePatientNum; data['admin'] = this.admin; return data; } } class Dept { String? createBy; String? createTime; String? updateBy; String? updateTime; String? remark; int? deptId; String? parentId; String? ancestors; String? deptName; String? orderNum; String? leader; String? phone; String? email; String? status; String? delFlag; String? parentName; Dept( {this.createBy, this.createTime, this.updateBy, this.updateTime, this.remark, this.deptId, this.parentId, this.ancestors, this.deptName, this.orderNum, this.leader, this.phone, this.email, this.status, this.delFlag, this.parentName}); Dept.fromJson(Map json) { createBy = json['createBy']; createTime = json['createTime']; updateBy = json['updateBy']; updateTime = json['updateTime']; remark = json['remark']; deptId = json['deptId']; parentId = json['parentId']; ancestors = json['ancestors']; deptName = json['deptName']; orderNum = json['orderNum']; leader = json['leader']; phone = json['phone']; email = json['email']; status = json['status']; delFlag = json['delFlag']; parentName = json['parentName']; } 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['deptId'] = this.deptId; data['parentId'] = this.parentId; data['ancestors'] = this.ancestors; data['deptName'] = this.deptName; data['orderNum'] = this.orderNum; data['leader'] = this.leader; data['phone'] = this.phone; data['email'] = this.email; data['status'] = this.status; data['delFlag'] = this.delFlag; data['parentName'] = this.parentName; return data; } }