import '../patiant_info_model.dart'; class PendingReferral { PatiantInformtion patientDetails; String doctorImageUrl; String nationalityFlagUrl; String responded; String answerFromTarget; String createdOn; int data; int isSameBranch; String editedOn; int interBranchReferral; int patientID; String patientName; int patientType; int referralNo; String referralStatus; String referredByDoctorInfo; String referredFromBranchName; String referredOn; String referredType; String remarksFromSource; String respondedOn; int sourceAppointmentNo; int sourceProjectId; String sourceSetupID; String startDate; int targetAppointmentNo; String targetClinicID; String targetDoctorID; int targetProjectId; String targetSetupID; bool isReferralDoctorSameBranch; PendingReferral({ this.patientDetails, this.doctorImageUrl, this.nationalityFlagUrl, this.responded, this.answerFromTarget, this.createdOn, this.data, this.isSameBranch, this.editedOn, this.interBranchReferral, this.patientID, this.patientName, this.patientType, this.referralNo, this.referralStatus, this.referredByDoctorInfo, this.referredFromBranchName, this.referredOn, this.referredType, this.remarksFromSource, this.respondedOn, this.sourceAppointmentNo, this.sourceProjectId, this.sourceSetupID, this.startDate, this.targetAppointmentNo, this.targetClinicID, this.targetDoctorID, this.targetProjectId, this.targetSetupID, this.isReferralDoctorSameBranch, }); PendingReferral.fromJson(Map json) { patientDetails = json['patientDetails'] != null ? PatiantInformtion.fromJson(json['patientDetails']) : null; doctorImageUrl = json['DoctorImageURL']; nationalityFlagUrl = json['NationalityFlagURL']; responded = json['Responded']; answerFromTarget = json['answerFromTarget']; createdOn = json['createdOn']; data = json['data']; isSameBranch = json['isSameBranch']; editedOn = json['editedOn']; interBranchReferral = json['interBranchReferral']; patientID = json['patientID']; patientName = json['patientName']; patientType = json['patientType']; referralNo = json['referralNo']; referralStatus = json['referralStatus']; referredByDoctorInfo = json['referredByDoctorInfo']; referredFromBranchName = json['referredFromBranchName']; referredOn = json['referredOn']; referredType = json['referredType']; remarksFromSource = json['remarksFromSource']; respondedOn = json['respondedOn']; sourceAppointmentNo = json['sourceAppointmentNo']; sourceProjectId = json['sourceProjectId']; sourceSetupID = json['sourceSetupID']; startDate = json['startDate']; targetAppointmentNo = json['targetAppointmentNo']; targetClinicID = json['targetClinicID']; targetDoctorID = json['targetDoctorID']; targetProjectId = json['targetProjectId']; targetSetupID = json['targetSetupID']; } Map toJson() { final Map data = new Map(); data['DoctorImageURL'] = this.doctorImageUrl; data['NationalityFlagURL'] = this.nationalityFlagUrl; data['Responded'] = this.responded; data['answerFromTarget'] = this.answerFromTarget; data['createdOn'] = this.createdOn; data['data'] = this.data; data['isSameBranch'] = this.isSameBranch; data['editedOn'] = this.editedOn; data['interBranchReferral'] = this.interBranchReferral; data['patientID'] = this.patientID; data['patientName'] = this.patientName; data['patientType'] = this.patientType; data['referralNo'] = this.referralNo; data['referralStatus'] = this.referralStatus; data['referredByDoctorInfo'] = this.referredByDoctorInfo; data['referredFromBranchName'] = this.referredFromBranchName; data['referredOn'] = this.referredOn; data['referredType'] = this.referredType; data['remarksFromSource'] = this.remarksFromSource; data['respondedOn'] = this.respondedOn; data['sourceAppointmentNo'] = this.sourceAppointmentNo; data['sourceProjectId'] = this.sourceProjectId; data['sourceSetupID'] = this.sourceSetupID; data['startDate'] = this.startDate; data['targetAppointmentNo'] = this.targetAppointmentNo; data['targetClinicID'] = this.targetClinicID; data['targetDoctorID'] = this.targetDoctorID; data['targetProjectId'] = this.targetProjectId; data['targetSetupID'] = this.targetSetupID; return data; } }