doctor_chat_list.dart 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. class DoctorChatList {
  2. String? msg;
  3. int? code;
  4. List<Data>? data;
  5. DoctorChatList({this.msg, this.code, this.data});
  6. DoctorChatList.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? id;
  28. int? isDel;
  29. String? createDate;
  30. String? createUser;
  31. String? updateDate;
  32. String? updateUser;
  33. String? tenantId;
  34. String? phoneNumber;
  35. String? password;
  36. String? identificationCard;
  37. String? avatar;
  38. Data(
  39. {this.id,
  40. this.isDel,
  41. this.createDate,
  42. this.createUser,
  43. this.updateDate,
  44. this.updateUser,
  45. this.tenantId,
  46. this.phoneNumber,
  47. this.password,
  48. this.identificationCard,
  49. this.avatar});
  50. Data.fromJson(Map<String, dynamic> json) {
  51. id = json['id'];
  52. isDel = json['isDel'];
  53. createDate = json['createDate'];
  54. createUser = json['createUser'];
  55. updateDate = json['updateDate'];
  56. updateUser = json['updateUser'];
  57. tenantId = json['tenantId'];
  58. phoneNumber = json['phoneNumber'];
  59. password = json['password'];
  60. identificationCard = json['identificationCard'];
  61. avatar = json['avatar'];
  62. }
  63. Map<String, dynamic> toJson() {
  64. final Map<String, dynamic> data = new Map<String, dynamic>();
  65. data['id'] = this.id;
  66. data['isDel'] = this.isDel;
  67. data['createDate'] = this.createDate;
  68. data['createUser'] = this.createUser;
  69. data['updateDate'] = this.updateDate;
  70. data['updateUser'] = this.updateUser;
  71. data['tenantId'] = this.tenantId;
  72. data['phoneNumber'] = this.phoneNumber;
  73. data['password'] = this.password;
  74. data['identificationCard'] = this.identificationCard;
  75. data['avatar'] = this.avatar;
  76. return data;
  77. }
  78. }