chat_list.dart 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. class ChatList {
  2. String? msg;
  3. int? code;
  4. List<Data>? data;
  5. ChatList({this.msg, this.code, this.data});
  6. ChatList.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. String? roleIds;
  46. String? postIds;
  47. String? postNames;
  48. String? roleId;
  49. String? physicianQualificationCertificatePic;
  50. String? medicalPracticingCertificatePic;
  51. String? physicianQualificationCertificateNum;
  52. String? medicalPracticingCertificateNum;
  53. int? showPatient;
  54. String? doctorProficient;
  55. String? doctorBlurb;
  56. String? number;
  57. bool? admin;
  58. Data(
  59. {this.createBy,
  60. this.createTime,
  61. this.updateBy,
  62. this.updateTime,
  63. this.remark,
  64. this.userId,
  65. this.deptId,
  66. this.userName,
  67. this.nickName,
  68. this.email,
  69. this.phonenumber,
  70. this.sex,
  71. this.avatar,
  72. this.password,
  73. this.status,
  74. this.delFlag,
  75. this.loginIp,
  76. this.loginDate,
  77. this.roleIds,
  78. this.postIds,
  79. this.postNames,
  80. this.roleId,
  81. this.physicianQualificationCertificatePic,
  82. this.medicalPracticingCertificatePic,
  83. this.physicianQualificationCertificateNum,
  84. this.medicalPracticingCertificateNum,
  85. this.showPatient,
  86. this.doctorProficient,
  87. this.doctorBlurb,
  88. this.number,
  89. this.admin});
  90. Data.fromJson(Map<String, dynamic> json) {
  91. createBy = json['createBy'];
  92. createTime = json['createTime'];
  93. updateBy = json['updateBy'];
  94. updateTime = json['updateTime'];
  95. remark = json['remark'];
  96. userId = json['userId'];
  97. deptId = json['deptId'];
  98. userName = json['userName'];
  99. nickName = json['nickName'];
  100. email = json['email'];
  101. phonenumber = json['phonenumber'];
  102. sex = json['sex'];
  103. avatar = json['avatar'];
  104. password = json['password'];
  105. status = json['status'];
  106. delFlag = json['delFlag'];
  107. loginIp = json['loginIp'];
  108. loginDate = json['loginDate'];
  109. roleIds = json['roleIds'];
  110. postIds = json['postIds'];
  111. postNames = json['postNames'];
  112. roleId = json['roleId'];
  113. physicianQualificationCertificatePic =
  114. json['physicianQualificationCertificatePic'];
  115. medicalPracticingCertificatePic = json['medicalPracticingCertificatePic'];
  116. physicianQualificationCertificateNum =
  117. json['physicianQualificationCertificateNum'];
  118. medicalPracticingCertificateNum = json['medicalPracticingCertificateNum'];
  119. showPatient = json['showPatient'];
  120. doctorProficient = json['doctorProficient'];
  121. doctorBlurb = json['doctorBlurb'];
  122. number = json['number'];
  123. admin = json['admin'];
  124. }
  125. Map<String, dynamic> toJson() {
  126. final Map<String, dynamic> data = new Map<String, dynamic>();
  127. data['createBy'] = this.createBy;
  128. data['createTime'] = this.createTime;
  129. data['updateBy'] = this.updateBy;
  130. data['updateTime'] = this.updateTime;
  131. data['remark'] = this.remark;
  132. data['userId'] = this.userId;
  133. data['deptId'] = this.deptId;
  134. data['userName'] = this.userName;
  135. data['nickName'] = this.nickName;
  136. data['email'] = this.email;
  137. data['phonenumber'] = this.phonenumber;
  138. data['sex'] = this.sex;
  139. data['avatar'] = this.avatar;
  140. data['password'] = this.password;
  141. data['status'] = this.status;
  142. data['delFlag'] = this.delFlag;
  143. data['loginIp'] = this.loginIp;
  144. data['loginDate'] = this.loginDate;
  145. data['roleIds'] = this.roleIds;
  146. data['postIds'] = this.postIds;
  147. data['postNames'] = this.postNames;
  148. data['roleId'] = this.roleId;
  149. data['physicianQualificationCertificatePic'] =
  150. this.physicianQualificationCertificatePic;
  151. data['medicalPracticingCertificatePic'] =
  152. this.medicalPracticingCertificatePic;
  153. data['physicianQualificationCertificateNum'] =
  154. this.physicianQualificationCertificateNum;
  155. data['medicalPracticingCertificateNum'] =
  156. this.medicalPracticingCertificateNum;
  157. data['showPatient'] = this.showPatient;
  158. data['doctorProficient'] = this.doctorProficient;
  159. data['doctorBlurb'] = this.doctorBlurb;
  160. data['number'] = this.number;
  161. data['admin'] = this.admin;
  162. return data;
  163. }
  164. }