Merge pull request 'dev_sultan' (#205) from dev_sultan into master
Reviewed-on: https://34.17.182.140/Haroon6138/HMG_Patient_App_New/pulls/205master
commit
9612b0019c
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,81 @@
|
||||
import 'dart:convert';
|
||||
|
||||
class GetFavoriteDoctorsListModel {
|
||||
int? id;
|
||||
int? projectId;
|
||||
int? clinicId;
|
||||
int? doctorId;
|
||||
int? patientId;
|
||||
bool? patientOutSa;
|
||||
bool? isActive;
|
||||
String? createdOn;
|
||||
dynamic modifiedOn;
|
||||
String? doctorImageUrl;
|
||||
String? doctorName;
|
||||
String? doctorTitle;
|
||||
String? nationalityFlagUrl;
|
||||
String? nationalityId;
|
||||
String? nationalityName;
|
||||
List<String>? speciality;
|
||||
|
||||
GetFavoriteDoctorsListModel({
|
||||
this.id,
|
||||
this.projectId,
|
||||
this.clinicId,
|
||||
this.doctorId,
|
||||
this.patientId,
|
||||
this.patientOutSa,
|
||||
this.isActive,
|
||||
this.createdOn,
|
||||
this.modifiedOn,
|
||||
this.doctorImageUrl,
|
||||
this.doctorName,
|
||||
this.doctorTitle,
|
||||
this.nationalityFlagUrl,
|
||||
this.nationalityId,
|
||||
this.nationalityName,
|
||||
this.speciality,
|
||||
});
|
||||
|
||||
factory GetFavoriteDoctorsListModel.fromRawJson(String str) => GetFavoriteDoctorsListModel.fromJson(json.decode(str));
|
||||
|
||||
String toRawJson() => json.encode(toJson());
|
||||
|
||||
factory GetFavoriteDoctorsListModel.fromJson(Map<String, dynamic> json) => GetFavoriteDoctorsListModel(
|
||||
id: json["ID"],
|
||||
projectId: json["ProjectID"],
|
||||
clinicId: json["ClinicID"],
|
||||
doctorId: json["DoctorID"],
|
||||
patientId: json["PatientID"],
|
||||
patientOutSa: json["PatientOutSA"],
|
||||
isActive: json["IsActive"],
|
||||
createdOn: json["CreatedOn"],
|
||||
modifiedOn: json["ModifiedOn"],
|
||||
doctorImageUrl: json["DoctorImageURL"],
|
||||
doctorName: json["DoctorName"],
|
||||
doctorTitle: json["DoctorTitle"],
|
||||
nationalityFlagUrl: json["NationalityFlagURL"],
|
||||
nationalityId: json["NationalityID"],
|
||||
nationalityName: json["NationalityName"],
|
||||
speciality: json["Speciality"] == null ? [] : List<String>.from(json["Speciality"]!.map((x) => x)),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"ID": id,
|
||||
"ProjectID": projectId,
|
||||
"ClinicID": clinicId,
|
||||
"DoctorID": doctorId,
|
||||
"PatientID": patientId,
|
||||
"PatientOutSA": patientOutSa,
|
||||
"IsActive": isActive,
|
||||
"CreatedOn": createdOn,
|
||||
"ModifiedOn": modifiedOn,
|
||||
"DoctorImageURL": doctorImageUrl,
|
||||
"DoctorName": doctorName,
|
||||
"DoctorTitle": doctorTitle,
|
||||
"NationalityFlagURL": nationalityFlagUrl,
|
||||
"NationalityID": nationalityId,
|
||||
"NationalityName": nationalityName,
|
||||
"Speciality": speciality == null ? [] : List<dynamic>.from(speciality!.map((x) => x)),
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue