appointment_list.dart 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. class AppointmentList {
  2. String? msg;
  3. int? code;
  4. List<Data>? data;
  5. AppointmentList({this.msg, this.code, this.data});
  6. AppointmentList.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? appointmentId;
  28. String? medicalRecordNum;
  29. String? patientName;
  30. String? patientId;
  31. String? outpatientService;
  32. String? identificationCard;
  33. int? appointmentType;
  34. String? personalRelationship;
  35. String? linkPhone;
  36. String? department;
  37. int? sex;
  38. String? attendingDoctor;
  39. String? attendingDoctorDepCn;
  40. String? registerUserName;
  41. String? appointmentStartTime;
  42. String? appointmentEndTime;
  43. String? remark;
  44. int? visitType;
  45. String? createDate;
  46. int? appointmentStatus;
  47. String? groupTime;
  48. Data(
  49. {this.appointmentId,
  50. this.medicalRecordNum,
  51. this.patientName,
  52. this.patientId,
  53. this.outpatientService,
  54. this.identificationCard,
  55. this.appointmentType,
  56. this.personalRelationship,
  57. this.linkPhone,
  58. this.department,
  59. this.sex,
  60. this.attendingDoctor,
  61. this.attendingDoctorDepCn,
  62. this.registerUserName,
  63. this.appointmentStartTime,
  64. this.appointmentEndTime,
  65. this.remark,
  66. this.visitType,
  67. this.createDate,
  68. this.appointmentStatus,
  69. this.groupTime});
  70. Data.fromJson(Map<String, dynamic> json) {
  71. appointmentId = json['appointmentId'];
  72. medicalRecordNum = json['medicalRecordNum'];
  73. patientName = json['patientName'];
  74. patientId = json['patientId'];
  75. outpatientService = json['outpatientService'];
  76. identificationCard = json['identificationCard'];
  77. appointmentType = json['appointmentType'];
  78. personalRelationship = json['personalRelationship'];
  79. linkPhone = json['linkPhone'];
  80. department = json['department'];
  81. sex = json['sex'];
  82. attendingDoctor = json['attendingDoctor'];
  83. attendingDoctorDepCn = json['attendingDoctorDepCn'];
  84. registerUserName = json['registerUserName'];
  85. appointmentStartTime = json['appointmentStartTime'];
  86. appointmentEndTime = json['appointmentEndTime'];
  87. remark = json['remark'];
  88. visitType = json['visitType'];
  89. createDate = json['createDate'];
  90. appointmentStatus = json['appointmentStatus'];
  91. groupTime = json['groupTime'];
  92. }
  93. Map<String, dynamic> toJson() {
  94. final Map<String, dynamic> data = new Map<String, dynamic>();
  95. data['appointmentId'] = this.appointmentId;
  96. data['medicalRecordNum'] = this.medicalRecordNum;
  97. data['patientName'] = this.patientName;
  98. data['patientId'] = this.patientId;
  99. data['outpatientService'] = this.outpatientService;
  100. data['identificationCard'] = this.identificationCard;
  101. data['appointmentType'] = this.appointmentType;
  102. data['personalRelationship'] = this.personalRelationship;
  103. data['linkPhone'] = this.linkPhone;
  104. data['department'] = this.department;
  105. data['sex'] = this.sex;
  106. data['attendingDoctor'] = this.attendingDoctor;
  107. data['attendingDoctorDepCn'] = this.attendingDoctorDepCn;
  108. data['registerUserName'] = this.registerUserName;
  109. data['appointmentStartTime'] = this.appointmentStartTime;
  110. data['appointmentEndTime'] = this.appointmentEndTime;
  111. data['remark'] = this.remark;
  112. data['visitType'] = this.visitType;
  113. data['createDate'] = this.createDate;
  114. data['appointmentStatus'] = this.appointmentStatus;
  115. data['groupTime'] = this.groupTime;
  116. return data;
  117. }
  118. }