doctor_list.dart 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. class DoctorListEntity {
  2. String? msg;
  3. int? code;
  4. List<Data>? data;
  5. DoctorListEntity({this.msg, this.code, this.data});
  6. DoctorListEntity.fromJson(Map<String, dynamic> json) {
  7. msg = json['msg'];
  8. code = json['code'];
  9. if (json['data'] != null) {
  10. data = <Data>[];
  11. json['data'].forEach((v) {
  12. data!.add(new Data.fromJson(v));
  13. });
  14. }
  15. }
  16. Map<String, dynamic> toJson() {
  17. final Map<String, dynamic> data = new Map<String, dynamic>();
  18. data['msg'] = this.msg;
  19. data['code'] = this.code;
  20. if (this.data != null) {
  21. data['data'] = this.data!.map((v) => v.toJson()).toList();
  22. }
  23. return data;
  24. }
  25. }
  26. class Data {
  27. String? createBy;
  28. String? createTime;
  29. String? updateBy;
  30. String? updateTime;
  31. String? remark;
  32. int? userId;
  33. int? deptId;
  34. String? userName;
  35. String? nickName;
  36. String? email;
  37. String? phonenumber;
  38. String? sex;
  39. String? avatar;
  40. String? password;
  41. String? status;
  42. String? delFlag;
  43. String? loginIp;
  44. String? loginDate;
  45. Dept? dept;
  46. String? roleIds;
  47. String? postIds;
  48. String? postNames;
  49. String? roleId;
  50. String? physicianQualificationCertificatePic;
  51. String? medicalPracticingCertificatePic;
  52. String? physicianQualificationCertificateNum;
  53. String? medicalPracticingCertificateNum;
  54. int? showPatient;
  55. String? doctorProficient;
  56. String? doctorBlurb;
  57. int? isFree;
  58. String? deptName;
  59. int? isCollection;
  60. int? receivePatientNum;
  61. bool? admin;
  62. Data(
  63. {this.createBy,
  64. this.createTime,
  65. this.updateBy,
  66. this.updateTime,
  67. this.remark,
  68. this.userId,
  69. this.deptId,
  70. this.userName,
  71. this.nickName,
  72. this.email,
  73. this.phonenumber,
  74. this.sex,
  75. this.avatar,
  76. this.password,
  77. this.status,
  78. this.delFlag,
  79. this.loginIp,
  80. this.loginDate,
  81. this.dept,
  82. this.roleIds,
  83. this.postIds,
  84. this.postNames,
  85. this.roleId,
  86. this.physicianQualificationCertificatePic,
  87. this.medicalPracticingCertificatePic,
  88. this.physicianQualificationCertificateNum,
  89. this.medicalPracticingCertificateNum,
  90. this.showPatient,
  91. this.doctorProficient,
  92. this.doctorBlurb,
  93. this.isFree,
  94. this.deptName,
  95. this.isCollection,
  96. this.receivePatientNum,
  97. this.admin});
  98. Data.fromJson(Map<String, dynamic> json) {
  99. createBy = json['createBy'];
  100. createTime = json['createTime'];
  101. updateBy = json['updateBy'];
  102. updateTime = json['updateTime'];
  103. remark = json['remark'];
  104. userId = json['userId'];
  105. deptId = json['deptId'];
  106. userName = json['userName'];
  107. nickName = json['nickName'];
  108. email = json['email'];
  109. phonenumber = json['phonenumber'];
  110. sex = json['sex'];
  111. avatar = json['avatar'];
  112. password = json['password'];
  113. status = json['status'];
  114. delFlag = json['delFlag'];
  115. loginIp = json['loginIp'];
  116. loginDate = json['loginDate'];
  117. dept = json['dept'] != null ? new Dept.fromJson(json['dept']) : null;
  118. roleIds = json['roleIds'];
  119. postIds = json['postIds'];
  120. postNames = json['postNames'];
  121. roleId = json['roleId'];
  122. physicianQualificationCertificatePic =
  123. json['physicianQualificationCertificatePic'];
  124. medicalPracticingCertificatePic = json['medicalPracticingCertificatePic'];
  125. physicianQualificationCertificateNum =
  126. json['physicianQualificationCertificateNum'];
  127. medicalPracticingCertificateNum = json['medicalPracticingCertificateNum'];
  128. showPatient = json['showPatient'];
  129. doctorProficient = json['doctorProficient'];
  130. doctorBlurb = json['doctorBlurb'];
  131. isFree = json['isFree'];
  132. deptName = json['deptName'];
  133. isCollection = json['isCollection'];
  134. receivePatientNum = json['receivePatientNum'];
  135. admin = json['admin'];
  136. }
  137. Map<String, dynamic> toJson() {
  138. final Map<String, dynamic> data = new Map<String, dynamic>();
  139. data['createBy'] = this.createBy;
  140. data['createTime'] = this.createTime;
  141. data['updateBy'] = this.updateBy;
  142. data['updateTime'] = this.updateTime;
  143. data['remark'] = this.remark;
  144. data['userId'] = this.userId;
  145. data['deptId'] = this.deptId;
  146. data['userName'] = this.userName;
  147. data['nickName'] = this.nickName;
  148. data['email'] = this.email;
  149. data['phonenumber'] = this.phonenumber;
  150. data['sex'] = this.sex;
  151. data['avatar'] = this.avatar;
  152. data['password'] = this.password;
  153. data['status'] = this.status;
  154. data['delFlag'] = this.delFlag;
  155. data['loginIp'] = this.loginIp;
  156. data['loginDate'] = this.loginDate;
  157. if (this.dept != null) {
  158. data['dept'] = this.dept!.toJson();
  159. }
  160. data['roleIds'] = this.roleIds;
  161. data['postIds'] = this.postIds;
  162. data['postNames'] = this.postNames;
  163. data['roleId'] = this.roleId;
  164. data['physicianQualificationCertificatePic'] =
  165. this.physicianQualificationCertificatePic;
  166. data['medicalPracticingCertificatePic'] =
  167. this.medicalPracticingCertificatePic;
  168. data['physicianQualificationCertificateNum'] =
  169. this.physicianQualificationCertificateNum;
  170. data['medicalPracticingCertificateNum'] =
  171. this.medicalPracticingCertificateNum;
  172. data['showPatient'] = this.showPatient;
  173. data['doctorProficient'] = this.doctorProficient;
  174. data['doctorBlurb'] = this.doctorBlurb;
  175. data['isFree'] = this.isFree;
  176. data['deptName'] = this.deptName;
  177. data['isCollection'] = this.isCollection;
  178. data['receivePatientNum'] = this.receivePatientNum;
  179. data['admin'] = this.admin;
  180. return data;
  181. }
  182. }
  183. class Dept {
  184. String? createBy;
  185. String? createTime;
  186. String? updateBy;
  187. String? updateTime;
  188. String? remark;
  189. int? deptId;
  190. String? parentId;
  191. String? ancestors;
  192. String? deptName;
  193. String? orderNum;
  194. String? leader;
  195. String? phone;
  196. String? email;
  197. String? status;
  198. String? delFlag;
  199. String? parentName;
  200. Dept(
  201. {this.createBy,
  202. this.createTime,
  203. this.updateBy,
  204. this.updateTime,
  205. this.remark,
  206. this.deptId,
  207. this.parentId,
  208. this.ancestors,
  209. this.deptName,
  210. this.orderNum,
  211. this.leader,
  212. this.phone,
  213. this.email,
  214. this.status,
  215. this.delFlag,
  216. this.parentName});
  217. Dept.fromJson(Map<String, dynamic> json) {
  218. createBy = json['createBy'];
  219. createTime = json['createTime'];
  220. updateBy = json['updateBy'];
  221. updateTime = json['updateTime'];
  222. remark = json['remark'];
  223. deptId = json['deptId'];
  224. parentId = json['parentId'];
  225. ancestors = json['ancestors'];
  226. deptName = json['deptName'];
  227. orderNum = json['orderNum'];
  228. leader = json['leader'];
  229. phone = json['phone'];
  230. email = json['email'];
  231. status = json['status'];
  232. delFlag = json['delFlag'];
  233. parentName = json['parentName'];
  234. }
  235. Map<String, dynamic> toJson() {
  236. final Map<String, dynamic> data = new Map<String, dynamic>();
  237. data['createBy'] = this.createBy;
  238. data['createTime'] = this.createTime;
  239. data['updateBy'] = this.updateBy;
  240. data['updateTime'] = this.updateTime;
  241. data['remark'] = this.remark;
  242. data['deptId'] = this.deptId;
  243. data['parentId'] = this.parentId;
  244. data['ancestors'] = this.ancestors;
  245. data['deptName'] = this.deptName;
  246. data['orderNum'] = this.orderNum;
  247. data['leader'] = this.leader;
  248. data['phone'] = this.phone;
  249. data['email'] = this.email;
  250. data['status'] = this.status;
  251. data['delFlag'] = this.delFlag;
  252. data['parentName'] = this.parentName;
  253. return data;
  254. }
  255. }