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.
196 lines
9.1 KiB
Dart
196 lines
9.1 KiB
Dart
class DoctorProfileListModel {
|
|
DoctorProfileListModel({
|
|
this.doctorId,
|
|
this.doctorName,
|
|
this.doctorNameN,
|
|
this.clinicId,
|
|
this.clinicDescription,
|
|
this.clinicDescriptionN,
|
|
this.licenseExpiry,
|
|
this.employmentType,
|
|
this.setupId,
|
|
this.projectId,
|
|
this.projectName,
|
|
this.nationalityId,
|
|
this.nationalityName,
|
|
this.nationalityNameN,
|
|
this.gender,
|
|
this.genderDescription,
|
|
this.genderDescriptionN,
|
|
this.doctorTitle,
|
|
this.projectNameN,
|
|
this.isAllowWaitList,
|
|
this.titleDescription,
|
|
this.titleDescriptionN,
|
|
this.isRegistered,
|
|
this.isDoctorDummy,
|
|
this.isActive,
|
|
this.isDoctorAppointmentDisplayed,
|
|
this.doctorClinicActive,
|
|
this.isbookingAllowed,
|
|
this.doctorCases,
|
|
this.doctorPicture,
|
|
this.doctorProfileInfo,
|
|
this.specialty,
|
|
this.actualDoctorRate,
|
|
this.consultationFee,
|
|
this.decimalDoctorRate,
|
|
this.doctorImageUrl,
|
|
this.doctorMobileNumber,
|
|
this.doctorRate,
|
|
this.doctorStarsRate,
|
|
this.doctorTitleForProfile,
|
|
this.isAppointmentAllowed,
|
|
this.isDoctorHasPrePostImages,
|
|
this.nationalityFlagUrl,
|
|
this.noOfPatientsRate,
|
|
this.qr,
|
|
this.serviceId,
|
|
});
|
|
|
|
final int? doctorId;
|
|
final String? doctorName;
|
|
final dynamic doctorNameN;
|
|
final int? clinicId;
|
|
final String? clinicDescription;
|
|
final dynamic clinicDescriptionN;
|
|
final dynamic licenseExpiry;
|
|
final int? employmentType;
|
|
final dynamic setupId;
|
|
final int? projectId;
|
|
final String? projectName;
|
|
final String? nationalityId;
|
|
final String? nationalityName;
|
|
final dynamic nationalityNameN;
|
|
final int? gender;
|
|
final String? genderDescription;
|
|
final dynamic genderDescriptionN;
|
|
final dynamic doctorTitle;
|
|
final dynamic projectNameN;
|
|
final bool? isAllowWaitList;
|
|
final String? titleDescription;
|
|
final dynamic titleDescriptionN;
|
|
final dynamic isRegistered;
|
|
final dynamic isDoctorDummy;
|
|
final bool? isActive;
|
|
final dynamic isDoctorAppointmentDisplayed;
|
|
final bool? doctorClinicActive;
|
|
final dynamic isbookingAllowed;
|
|
final String? doctorCases;
|
|
final dynamic doctorPicture;
|
|
final String? doctorProfileInfo;
|
|
final List<String>? specialty;
|
|
final int? actualDoctorRate;
|
|
final String? consultationFee;
|
|
final double? decimalDoctorRate;
|
|
final String? doctorImageUrl;
|
|
final String? doctorMobileNumber;
|
|
final int? doctorRate;
|
|
final int? doctorStarsRate;
|
|
final String? doctorTitleForProfile;
|
|
final bool? isAppointmentAllowed;
|
|
final bool? isDoctorHasPrePostImages;
|
|
final String? nationalityFlagUrl;
|
|
final int? noOfPatientsRate;
|
|
final String? qr;
|
|
final int? serviceId;
|
|
|
|
factory DoctorProfileListModel.fromJson(Map<String, dynamic> json) => DoctorProfileListModel(
|
|
doctorId: json["DoctorID"] == null ? null : json["DoctorID"],
|
|
doctorName: json["DoctorName"] == null ? null : json["DoctorName"],
|
|
doctorNameN: json["DoctorNameN"],
|
|
clinicId: json["ClinicID"] == null ? null : json["ClinicID"],
|
|
clinicDescription: json["ClinicDescription"] == null ? null : json["ClinicDescription"],
|
|
clinicDescriptionN: json["ClinicDescriptionN"],
|
|
licenseExpiry: json["LicenseExpiry"],
|
|
employmentType: json["EmploymentType"] == null ? null : json["EmploymentType"],
|
|
setupId: json["SetupID"],
|
|
projectId: json["ProjectID"] == null ? null : json["ProjectID"],
|
|
projectName: json["ProjectName"] == null ? null : json["ProjectName"],
|
|
nationalityId: json["NationalityID"] == null ? null : json["NationalityID"],
|
|
nationalityName: json["NationalityName"] == null ? null : json["NationalityName"],
|
|
nationalityNameN: json["NationalityNameN"],
|
|
gender: json["Gender"] == null ? null : json["Gender"],
|
|
genderDescription: json["Gender_Description"] == null ? null : json["Gender_Description"],
|
|
genderDescriptionN: json["Gender_DescriptionN"],
|
|
doctorTitle: json["DoctorTitle"],
|
|
projectNameN: json["ProjectNameN"],
|
|
isAllowWaitList: json["IsAllowWaitList"] == null ? null : json["IsAllowWaitList"],
|
|
titleDescription: json["Title_Description"] == null ? null : json["Title_Description"],
|
|
titleDescriptionN: json["Title_DescriptionN"],
|
|
isRegistered: json["IsRegistered"],
|
|
isDoctorDummy: json["IsDoctorDummy"],
|
|
isActive: json["IsActive"] == null ? null : json["IsActive"],
|
|
isDoctorAppointmentDisplayed: json["IsDoctorAppointmentDisplayed"],
|
|
doctorClinicActive: json["DoctorClinicActive"] == null ? null : json["DoctorClinicActive"],
|
|
isbookingAllowed: json["IsbookingAllowed"],
|
|
doctorCases: json["DoctorCases"] == null ? null : json["DoctorCases"],
|
|
doctorPicture: json["DoctorPicture"],
|
|
doctorProfileInfo: json["DoctorProfileInfo"] == null ? null : json["DoctorProfileInfo"],
|
|
specialty: json["Specialty"] == null ? null : List<String>.from(json["Specialty"].map((x) => x)),
|
|
actualDoctorRate: json["ActualDoctorRate"] == null ? null : json["ActualDoctorRate"],
|
|
consultationFee: json["ConsultationFee"] == null ? null : json["ConsultationFee"],
|
|
decimalDoctorRate: json["DecimalDoctorRate"] == null ? null : json["DecimalDoctorRate"].toDouble(),
|
|
doctorImageUrl: json["DoctorImageURL"] == null ? null : json["DoctorImageURL"],
|
|
doctorMobileNumber: json["DoctorMobileNumber"] == null ? null : json["DoctorMobileNumber"],
|
|
doctorRate: json["DoctorRate"] == null ? null : json["DoctorRate"],
|
|
doctorStarsRate: json["DoctorStarsRate"] == null ? null : json["DoctorStarsRate"],
|
|
doctorTitleForProfile: json["DoctorTitleForProfile"] == null ? null : json["DoctorTitleForProfile"],
|
|
isAppointmentAllowed: json["IsAppointmentAllowed"] == null ? null : json["IsAppointmentAllowed"],
|
|
isDoctorHasPrePostImages: json["IsDoctorHasPrePostImages"] == null ? null : json["IsDoctorHasPrePostImages"],
|
|
nationalityFlagUrl: json["NationalityFlagURL"] == null ? null : json["NationalityFlagURL"],
|
|
noOfPatientsRate: json["NoOfPatientsRate"] == null ? null : json["NoOfPatientsRate"],
|
|
qr: json["QR"] == null ? null : json["QR"],
|
|
serviceId: json["ServiceID"] == null ? null : json["ServiceID"],
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
"DoctorID": doctorId == null ? null : doctorId,
|
|
"DoctorName": doctorName == null ? null : doctorName,
|
|
"DoctorNameN": doctorNameN,
|
|
"ClinicID": clinicId == null ? null : clinicId,
|
|
"ClinicDescription": clinicDescription == null ? null : clinicDescription,
|
|
"ClinicDescriptionN": clinicDescriptionN,
|
|
"LicenseExpiry": licenseExpiry,
|
|
"EmploymentType": employmentType == null ? null : employmentType,
|
|
"SetupID": setupId,
|
|
"ProjectID": projectId == null ? null : projectId,
|
|
"ProjectName": projectName == null ? null : projectName,
|
|
"NationalityID": nationalityId == null ? null : nationalityId,
|
|
"NationalityName": nationalityName == null ? null : nationalityName,
|
|
"NationalityNameN": nationalityNameN,
|
|
"Gender": gender == null ? null : gender,
|
|
"Gender_Description": genderDescription == null ? null : genderDescription,
|
|
"Gender_DescriptionN": genderDescriptionN,
|
|
"DoctorTitle": doctorTitle,
|
|
"ProjectNameN": projectNameN,
|
|
"IsAllowWaitList": isAllowWaitList == null ? null : isAllowWaitList,
|
|
"Title_Description": titleDescription == null ? null : titleDescription,
|
|
"Title_DescriptionN": titleDescriptionN,
|
|
"IsRegistered": isRegistered,
|
|
"IsDoctorDummy": isDoctorDummy,
|
|
"IsActive": isActive == null ? null : isActive,
|
|
"IsDoctorAppointmentDisplayed": isDoctorAppointmentDisplayed,
|
|
"DoctorClinicActive": doctorClinicActive == null ? null : doctorClinicActive,
|
|
"IsbookingAllowed": isbookingAllowed,
|
|
"DoctorCases": doctorCases == null ? null : doctorCases,
|
|
"DoctorPicture": doctorPicture,
|
|
"DoctorProfileInfo": doctorProfileInfo == null ? null : doctorProfileInfo,
|
|
"Specialty": specialty == null ? null : List<dynamic>.from(specialty!.map((x) => x)),
|
|
"ActualDoctorRate": actualDoctorRate == null ? null : actualDoctorRate,
|
|
"ConsultationFee": consultationFee == null ? null : consultationFee,
|
|
"DecimalDoctorRate": decimalDoctorRate == null ? null : decimalDoctorRate,
|
|
"DoctorImageURL": doctorImageUrl == null ? null : doctorImageUrl,
|
|
"DoctorMobileNumber": doctorMobileNumber == null ? null : doctorMobileNumber,
|
|
"DoctorRate": doctorRate == null ? null : doctorRate,
|
|
"DoctorStarsRate": doctorStarsRate == null ? null : doctorStarsRate,
|
|
"DoctorTitleForProfile": doctorTitleForProfile == null ? null : doctorTitleForProfile,
|
|
"IsAppointmentAllowed": isAppointmentAllowed == null ? null : isAppointmentAllowed,
|
|
"IsDoctorHasPrePostImages": isDoctorHasPrePostImages == null ? null : isDoctorHasPrePostImages,
|
|
"NationalityFlagURL": nationalityFlagUrl == null ? null : nationalityFlagUrl,
|
|
"NoOfPatientsRate": noOfPatientsRate == null ? null : noOfPatientsRate,
|
|
"QR": qr == null ? null : qr,
|
|
"ServiceID": serviceId == null ? null : serviceId,
|
|
};
|
|
}
|