You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
896 B
38 lines
896 B
|
|
|
|
class GetAllQuotationsModel {
|
|
String bookingId='';
|
|
String pharmacyId='';
|
|
String pharmacyName='';
|
|
String pharmacyContactNumber='';
|
|
String pharmacy_address='';
|
|
List prescriptionImages=[];
|
|
|
|
|
|
|
|
|
|
|
|
GetAllQuotationsModel();
|
|
|
|
factory GetAllQuotationsModel.fromJson(Map<String, dynamic> json){
|
|
GetAllQuotationsModel rtvm = new GetAllQuotationsModel();
|
|
rtvm.bookingId = json['bookingId'] ?? '';
|
|
rtvm.pharmacyId = json['pharmacyId'] ?? '';
|
|
if(json['pharmacyInfo']!=null){
|
|
rtvm.pharmacyName = json['pharmacyInfo']['pharmacyname'] ?? '';
|
|
rtvm.pharmacyContactNumber = json['pharmacyInfo']['profile']['contactNumber'] ?? '';
|
|
rtvm.pharmacy_address = json['pharmacyInfo']['profile']['pharmacy_address'] ?? '';
|
|
}
|
|
else{
|
|
rtvm.pharmacyName = '';
|
|
rtvm.pharmacyContactNumber = '';
|
|
rtvm.pharmacy_address ='';
|
|
}
|
|
|
|
|
|
|
|
|
|
return rtvm;
|
|
}
|
|
|
|
} |