class GetDentalAppointmentsResponse { List listDentalAppointments; GetDentalAppointmentsResponse({this.listDentalAppointments}); GetDentalAppointmentsResponse.fromJson(Map json) { if (json['List_DentalAppointments'] != null) { listDentalAppointments = new List(); json['List_DentalAppointments'].forEach((v) { listDentalAppointments.add(new ListDentalAppointments.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); if (this.listDentalAppointments != null) { data['List_DentalAppointments'] = this.listDentalAppointments.map((v) => v.toJson()).toList(); } return data; } } class ListDentalAppointments { String setupId; int projectID; int patientID; int appointmentNo; String appointmentDate; dynamic appointmentDateN; int clinicID; int doctorID; int invoiceNo; int status; String arrivedOn; String doctorName; dynamic doctorNameN; String clinicName; String doctorImageURL; String projectName; ListDentalAppointments( {this.setupId, this.projectID, this.patientID, this.appointmentNo, this.appointmentDate, this.appointmentDateN, this.clinicID, this.doctorID, this.invoiceNo, this.status, this.arrivedOn, this.doctorName, this.doctorNameN, this.clinicName, this.doctorImageURL, this.projectName}); ListDentalAppointments.fromJson(Map json) { setupId = json['SetupId']; projectID = json['ProjectID']; patientID = json['PatientID']; appointmentNo = json['AppointmentNo']; appointmentDate = json['AppointmentDate']; appointmentDateN = json['AppointmentDateN']; clinicID = json['ClinicID']; doctorID = json['DoctorID']; invoiceNo = json['InvoiceNo']; status = json['Status']; arrivedOn = json['ArrivedOn']; doctorName = json['DoctorName']; doctorNameN = json['DoctorNameN']; clinicName = json['ClinicName']; doctorImageURL = json['DoctorImageURL']; projectName = json['ProjectName']; } Map toJson() { final Map data = new Map(); data['SetupId'] = this.setupId; data['ProjectID'] = this.projectID; data['PatientID'] = this.patientID; data['AppointmentNo'] = this.appointmentNo; data['AppointmentDate'] = this.appointmentDate; data['AppointmentDateN'] = this.appointmentDateN; data['ClinicID'] = this.clinicID; data['DoctorID'] = this.doctorID; data['InvoiceNo'] = this.invoiceNo; data['Status'] = this.status; data['ArrivedOn'] = this.arrivedOn; data['DoctorName'] = this.doctorName; data['DoctorNameN'] = this.doctorNameN; data['ClinicName'] = this.clinicName; data['DoctorImageURL'] = this.doctorImageURL; data['ProjectName'] = this.projectName; return data; } }