hospital_detail.dart 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. class HospitalDetail {
  2. String? msg;
  3. int? code;
  4. DataDetail? data;
  5. HospitalDetail({this.msg, this.code, this.data});
  6. HospitalDetail.fromJson(Map<String, dynamic> json) {
  7. msg = json['msg'];
  8. code = json['code'];
  9. data = json['data'] != null ? new DataDetail.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 DataDetail {
  22. String? id;
  23. int? isDel;
  24. String? createDate;
  25. String? createUser;
  26. String? updateDate;
  27. String? updateUser;
  28. String? tenantId;
  29. String? clinicName;
  30. String? logoPic;
  31. String? clinicLinkName;
  32. String? clinicLinkPhone;
  33. String? city;
  34. String? cityCode;
  35. String? detailedAddress;
  36. String? businessLicenseName;
  37. String? businessLicenseCode;
  38. String? medicalInstitutionCode;
  39. String? businessStartTime;
  40. String? businessEndTime;
  41. String? clinicWorkingDays;
  42. int? operatingYears;
  43. int? dentalChairsNum;
  44. int? storeArea;
  45. String? storeIntroduction;
  46. String? bannerPic;
  47. String? medicalInstitutionOccupationalLicense;
  48. String? scannedCopyBusinessLicense;
  49. List<String>? clinicWorkingDaysList;
  50. String? bannerPic1;
  51. String? bannerPic2;
  52. String? bannerPic3;
  53. DataDetail(
  54. {this.id,
  55. this.isDel,
  56. this.createDate,
  57. this.createUser,
  58. this.updateDate,
  59. this.updateUser,
  60. this.tenantId,
  61. this.clinicName,
  62. this.logoPic,
  63. this.clinicLinkName,
  64. this.clinicLinkPhone,
  65. this.city,
  66. this.cityCode,
  67. this.detailedAddress,
  68. this.businessLicenseName,
  69. this.businessLicenseCode,
  70. this.medicalInstitutionCode,
  71. this.businessStartTime,
  72. this.businessEndTime,
  73. this.clinicWorkingDays,
  74. this.operatingYears,
  75. this.dentalChairsNum,
  76. this.storeArea,
  77. this.storeIntroduction,
  78. this.bannerPic,
  79. this.medicalInstitutionOccupationalLicense,
  80. this.scannedCopyBusinessLicense,
  81. this.clinicWorkingDaysList,
  82. this.bannerPic1,
  83. this.bannerPic2,
  84. this.bannerPic3});
  85. DataDetail.fromJson(Map<String, dynamic> json) {
  86. id = json['id'];
  87. isDel = json['isDel'];
  88. createDate = json['createDate'];
  89. createUser = json['createUser'];
  90. updateDate = json['updateDate'];
  91. updateUser = json['updateUser'];
  92. tenantId = json['tenantId'];
  93. clinicName = json['clinicName'];
  94. logoPic = json['logoPic'];
  95. clinicLinkName = json['clinicLinkName'];
  96. clinicLinkPhone = json['clinicLinkPhone'];
  97. city = json['city'];
  98. cityCode = json['cityCode'];
  99. detailedAddress = json['detailedAddress'];
  100. businessLicenseName = json['businessLicenseName'];
  101. businessLicenseCode = json['businessLicenseCode'];
  102. medicalInstitutionCode = json['medicalInstitutionCode'];
  103. businessStartTime = json['businessStartTime'];
  104. businessEndTime = json['businessEndTime'];
  105. clinicWorkingDays = json['clinicWorkingDays'];
  106. operatingYears = json['operatingYears'];
  107. dentalChairsNum = json['dentalChairsNum'];
  108. storeArea = json['storeArea'];
  109. storeIntroduction = json['storeIntroduction'];
  110. bannerPic = json['bannerPic'];
  111. medicalInstitutionOccupationalLicense =
  112. json['medicalInstitutionOccupationalLicense'];
  113. scannedCopyBusinessLicense = json['scannedCopyBusinessLicense'];
  114. clinicWorkingDaysList = json['clinicWorkingDaysList'].cast<String>();
  115. bannerPic1 = json['bannerPic1'];
  116. bannerPic2 = json['bannerPic2'];
  117. bannerPic3 = json['bannerPic3'];
  118. }
  119. Map<String, dynamic> toJson() {
  120. final Map<String, dynamic> data = new Map<String, dynamic>();
  121. data['id'] = this.id;
  122. data['isDel'] = this.isDel;
  123. data['createDate'] = this.createDate;
  124. data['createUser'] = this.createUser;
  125. data['updateDate'] = this.updateDate;
  126. data['updateUser'] = this.updateUser;
  127. data['tenantId'] = this.tenantId;
  128. data['clinicName'] = this.clinicName;
  129. data['logoPic'] = this.logoPic;
  130. data['clinicLinkName'] = this.clinicLinkName;
  131. data['clinicLinkPhone'] = this.clinicLinkPhone;
  132. data['city'] = this.city;
  133. data['cityCode'] = this.cityCode;
  134. data['detailedAddress'] = this.detailedAddress;
  135. data['businessLicenseName'] = this.businessLicenseName;
  136. data['businessLicenseCode'] = this.businessLicenseCode;
  137. data['medicalInstitutionCode'] = this.medicalInstitutionCode;
  138. data['businessStartTime'] = this.businessStartTime;
  139. data['businessEndTime'] = this.businessEndTime;
  140. data['clinicWorkingDays'] = this.clinicWorkingDays;
  141. data['operatingYears'] = this.operatingYears;
  142. data['dentalChairsNum'] = this.dentalChairsNum;
  143. data['storeArea'] = this.storeArea;
  144. data['storeIntroduction'] = this.storeIntroduction;
  145. data['bannerPic'] = this.bannerPic;
  146. data['medicalInstitutionOccupationalLicense'] =
  147. this.medicalInstitutionOccupationalLicense;
  148. data['scannedCopyBusinessLicense'] = this.scannedCopyBusinessLicense;
  149. data['clinicWorkingDaysList'] = this.clinicWorkingDaysList;
  150. data['bannerPic1'] = this.bannerPic1;
  151. data['bannerPic2'] = this.bannerPic2;
  152. data['bannerPic3'] = this.bannerPic3;
  153. return data;
  154. }
  155. }