You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/models/patient/my_referral/PendingReferral.dart

119 lines
3.9 KiB
Dart

class PendingReferral {
String responded;
String answerFromTarget;
String createdOn;
int data;
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.responded,
this.answerFromTarget,
this.createdOn,
this.data,
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<String, dynamic> json) {
responded = json['Responded'];
answerFromTarget = json['answerFromTarget'];
createdOn = json['createdOn'];
data = json['data'];
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<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['Responded'] = this.responded;
data['answerFromTarget'] = this.answerFromTarget;
data['createdOn'] = this.createdOn;
data['data'] = this.data;
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;
}
}