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.
49 lines
1.4 KiB
Dart
49 lines
1.4 KiB
Dart
class PatientSearchRequestModel {
|
|
int doctorID;
|
|
String firstName;
|
|
String middleName;
|
|
String lastName;
|
|
String patientMobileNumber;
|
|
String patientIdentificationID;
|
|
int patientID;
|
|
String from;
|
|
String to;
|
|
|
|
PatientSearchRequestModel(
|
|
{this.doctorID,
|
|
this.firstName,
|
|
this.middleName,
|
|
this.lastName,
|
|
this.patientMobileNumber,
|
|
this.patientIdentificationID,
|
|
this.patientID,
|
|
this.from,
|
|
this.to});
|
|
|
|
PatientSearchRequestModel.fromJson(Map<String, dynamic> json) {
|
|
doctorID = json['DoctorID'];
|
|
firstName = json['FirstName'];
|
|
middleName = json['MiddleName'];
|
|
lastName = json['LastName'];
|
|
patientMobileNumber = json['PatientMobileNumber'];
|
|
patientIdentificationID = json['PatientIdentificationID'];
|
|
patientID = json['PatientID'];
|
|
from = json['From'];
|
|
to = json['To'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['DoctorID'] = this.doctorID;
|
|
data['FirstName'] = this.firstName;
|
|
data['MiddleName'] = this.middleName;
|
|
data['LastName'] = this.lastName;
|
|
data['PatientMobileNumber'] = this.patientMobileNumber;
|
|
data['PatientIdentificationID'] = this.patientIdentificationID;
|
|
data['PatientID'] = this.patientID;
|
|
data['From'] = this.from;
|
|
data['To'] = this.to;
|
|
return data;
|
|
}
|
|
}
|