chat_disease.dart 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. class ChatDisease {
  2. String? msg;
  3. int? code;
  4. Data? data;
  5. ChatDisease({this.msg, this.code, this.data});
  6. ChatDisease.fromJson(Map<String, dynamic> json) {
  7. msg = json['msg'];
  8. code = json['code'];
  9. data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  10. }
  11. Map<String, dynamic> toJson() {
  12. final Map<String, dynamic> data = new Map<String, dynamic>();
  13. data['msg'] = this.msg;
  14. data['code'] = this.code;
  15. if (this.data != null) {
  16. data['data'] = this.data!.toJson();
  17. }
  18. return data;
  19. }
  20. }
  21. class Data {
  22. String? id;
  23. int? isDel;
  24. String? createDate;
  25. String? createUser;
  26. String? updateDate;
  27. String? updateUser;
  28. String? tenantId;
  29. String? name;
  30. int? age;
  31. int? sex;
  32. String? docker;
  33. String? resource;
  34. String? patientId;
  35. String? url;
  36. Data(
  37. {this.id,
  38. this.isDel,
  39. this.createDate,
  40. this.createUser,
  41. this.updateDate,
  42. this.updateUser,
  43. this.tenantId,
  44. this.name,
  45. this.age,
  46. this.sex,
  47. this.docker,
  48. this.resource,
  49. this.patientId,
  50. this.url});
  51. Data.fromJson(Map<String, dynamic> json) {
  52. id = json['id'];
  53. isDel = json['isDel'];
  54. createDate = json['createDate'];
  55. createUser = json['createUser'];
  56. updateDate = json['updateDate'];
  57. updateUser = json['updateUser'];
  58. tenantId = json['tenantId'];
  59. name = json['name'];
  60. age = json['age'];
  61. sex = json['sex'];
  62. docker = json['docker'];
  63. resource = json['resource'];
  64. patientId = json['patientId'];
  65. url = json['url'];
  66. }
  67. Map<String, dynamic> toJson() {
  68. final Map<String, dynamic> data = new Map<String, dynamic>();
  69. data['id'] = this.id;
  70. data['isDel'] = this.isDel;
  71. data['createDate'] = this.createDate;
  72. data['createUser'] = this.createUser;
  73. data['updateDate'] = this.updateDate;
  74. data['updateUser'] = this.updateUser;
  75. data['tenantId'] = this.tenantId;
  76. data['name'] = this.name;
  77. data['age'] = this.age;
  78. data['sex'] = this.sex;
  79. data['docker'] = this.docker;
  80. data['resource'] = this.resource;
  81. data['patientId'] = this.patientId;
  82. data['url'] = this.url;
  83. return data;
  84. }
  85. }