class AppointmentList { String? msg; int? code; List? data; AppointmentList({this.msg, this.code, this.data}); AppointmentList.fromJson(Map json) { msg = json['msg']; code = json['code']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(new Data.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['msg'] = this.msg; data['code'] = this.code; if (this.data != null) { data['data'] = this.data!.map((v) => v.toJson()).toList(); } return data; } } class Data { String? appointmentId; String? medicalRecordNum; String? patientName; String? patientId; String? outpatientService; String? identificationCard; int? appointmentType; String? personalRelationship; String? linkPhone; String? department; int? sex; String? attendingDoctor; String? attendingDoctorDepCn; String? registerUserName; String? appointmentStartTime; String? appointmentEndTime; String? remark; int? visitType; String? createDate; int? appointmentStatus; String? groupTime; Data( {this.appointmentId, this.medicalRecordNum, this.patientName, this.patientId, this.outpatientService, this.identificationCard, this.appointmentType, this.personalRelationship, this.linkPhone, this.department, this.sex, this.attendingDoctor, this.attendingDoctorDepCn, this.registerUserName, this.appointmentStartTime, this.appointmentEndTime, this.remark, this.visitType, this.createDate, this.appointmentStatus, this.groupTime}); Data.fromJson(Map json) { appointmentId = json['appointmentId']; medicalRecordNum = json['medicalRecordNum']; patientName = json['patientName']; patientId = json['patientId']; outpatientService = json['outpatientService']; identificationCard = json['identificationCard']; appointmentType = json['appointmentType']; personalRelationship = json['personalRelationship']; linkPhone = json['linkPhone']; department = json['department']; sex = json['sex']; attendingDoctor = json['attendingDoctor']; attendingDoctorDepCn = json['attendingDoctorDepCn']; registerUserName = json['registerUserName']; appointmentStartTime = json['appointmentStartTime']; appointmentEndTime = json['appointmentEndTime']; remark = json['remark']; visitType = json['visitType']; createDate = json['createDate']; appointmentStatus = json['appointmentStatus']; groupTime = json['groupTime']; } Map toJson() { final Map data = new Map(); data['appointmentId'] = this.appointmentId; data['medicalRecordNum'] = this.medicalRecordNum; data['patientName'] = this.patientName; data['patientId'] = this.patientId; data['outpatientService'] = this.outpatientService; data['identificationCard'] = this.identificationCard; data['appointmentType'] = this.appointmentType; data['personalRelationship'] = this.personalRelationship; data['linkPhone'] = this.linkPhone; data['department'] = this.department; data['sex'] = this.sex; data['attendingDoctor'] = this.attendingDoctor; data['attendingDoctorDepCn'] = this.attendingDoctorDepCn; data['registerUserName'] = this.registerUserName; data['appointmentStartTime'] = this.appointmentStartTime; data['appointmentEndTime'] = this.appointmentEndTime; data['remark'] = this.remark; data['visitType'] = this.visitType; data['createDate'] = this.createDate; data['appointmentStatus'] = this.appointmentStatus; data['groupTime'] = this.groupTime; return data; } }