Untitled
faisalsalameh
dart
2 years ago
17 kB
9
Indexable
class SearchModel {
List<ShopsList>? shopsList;
List<ProductsList>? productsList;
SearchModel({this.shopsList, this.productsList});
SearchModel.fromJson(Map<String, dynamic> json) {
if (json['shopsList'] != null) {
shopsList = <ShopsList>[];
json['shopsList'].forEach((v) {
shopsList!.add(new ShopsList.fromJson(v));
});
}
if (json['productsList'] != null) {
productsList = <ProductsList>[];
json['productsList'].forEach((v) {
productsList!.add(new ProductsList.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.shopsList != null) {
data['shopsList'] = this.shopsList!.map((v) => v.toJson()).toList();
}
if (this.productsList != null) {
data['productsList'] = this.productsList!.map((v) => v.toJson()).toList();
}
return data;
}
}
class ShopsList {
int? rid;
int? merchantRid;
String? merchantName;
String? tenantIdName;
String? deliveryMerchantId;
String? apiAccessKey;
String? name;
String? tenantStatus;
String? tenantType;
String? paymentReportType;
Null? generalEmail;
Null? generalPhoneNumber;
bool? postOfficeIntegration;
String? hospitalUsername;
Null? hospitalPassword;
String? pharmacyUsername;
Null? pharmacyPassword;
String? hospitalLastChecked;
String? pharmacyLastChecked;
bool? hasHospitalPassword;
bool? hasPharmacyPassword;
String? addressLocation;
String? addressLine;
Null? addressLabel;
String? directions;
double? longitude;
double? latitude;
bool? defaultHakeemTenant;
bool? sendFirstMsg;
bool? allowHakeemPackaging;
bool? allowHakeemDispense;
bool? isActive;
bool? allowItemsDeletion;
bool? separatePayment;
int? providerDeliveryCharge;
int? consumerDeliveryCharge;
int? paymentProcessingFees;
int? hakeemCutCash;
int? hakeemCutInsurance;
int? hakeemCutBiologic;
int? hakeemChargesCod;
double? hakeemChargesCredit;
int? paymentUponDeliveryFees;
String? tenantImg;
String? tenantImgPath;
String? tenantGroup;
Null? tenantSavingErx;
Null? businessType;
String? licenseNumber;
String? businessBrandSector;
String? contactPersonName;
String? contactPersonPhone;
String? contactPersonEmail;
String? defaultCurrency;
String? state;
String? country;
String? iban;
Null? tenantPricingTemplateList;
Null? tenantDeliveryTeamList;
bool? isMaster;
String? postOffice;
String? deliveryOption;
bool? allowPatientPickUp;
String? license;
String? defaultInquiryUrl;
bool? allowErxApproval;
bool? allowErxDownload;
bool? automationEnabled;
bool? omnyRxEnabled;
String? activeCredsOption;
String? createdOn;
bool? allowWhatsAppNotification;
bool? allowSmsNotification;
Null? logo;
Null? logoObject;
Null? pharmacyClaimsSavedTo;
Null? pharmacyRemittanceSavedTo;
bool? pharmacyClaimsIntegration;
String? overviewDashboard;
String? zeinxDashboard;
bool? zeinxEnabled;
Null? logoApiLink;
bool? hasReferralPartner;
Null? referralPartnerRid;
Null? referralPartner;
Null? locationCity;
Null? locationArea;
bool? saveHakeemRelatedOnly;
bool? retailEnabled;
bool? retailLiveForCustomers;
Null? bannersList;
Null? categoriesList;
ShopsList(
{this.rid,
this.merchantRid,
this.merchantName,
this.tenantIdName,
this.deliveryMerchantId,
this.apiAccessKey,
this.name,
this.tenantStatus,
this.tenantType,
this.paymentReportType,
this.generalEmail,
this.generalPhoneNumber,
this.postOfficeIntegration,
this.hospitalUsername,
this.hospitalPassword,
this.pharmacyUsername,
this.pharmacyPassword,
this.hospitalLastChecked,
this.pharmacyLastChecked,
this.hasHospitalPassword,
this.hasPharmacyPassword,
this.addressLocation,
this.addressLine,
this.addressLabel,
this.directions,
this.longitude,
this.latitude,
this.defaultHakeemTenant,
this.sendFirstMsg,
this.allowHakeemPackaging,
this.allowHakeemDispense,
this.isActive,
this.allowItemsDeletion,
this.separatePayment,
this.providerDeliveryCharge,
this.consumerDeliveryCharge,
this.paymentProcessingFees,
this.hakeemCutCash,
this.hakeemCutInsurance,
this.hakeemCutBiologic,
this.hakeemChargesCod,
this.hakeemChargesCredit,
this.paymentUponDeliveryFees,
this.tenantImg,
this.tenantImgPath,
this.tenantGroup,
this.tenantSavingErx,
this.businessType,
this.licenseNumber,
this.businessBrandSector,
this.contactPersonName,
this.contactPersonPhone,
this.contactPersonEmail,
this.defaultCurrency,
this.state,
this.country,
this.iban,
this.tenantPricingTemplateList,
this.tenantDeliveryTeamList,
this.isMaster,
this.postOffice,
this.deliveryOption,
this.allowPatientPickUp,
this.license,
this.defaultInquiryUrl,
this.allowErxApproval,
this.allowErxDownload,
this.automationEnabled,
this.omnyRxEnabled,
this.activeCredsOption,
this.createdOn,
this.allowWhatsAppNotification,
this.allowSmsNotification,
this.logo,
this.logoObject,
this.pharmacyClaimsSavedTo,
this.pharmacyRemittanceSavedTo,
this.pharmacyClaimsIntegration,
this.overviewDashboard,
this.zeinxDashboard,
this.zeinxEnabled,
this.logoApiLink,
this.hasReferralPartner,
this.referralPartnerRid,
this.referralPartner,
this.locationCity,
this.locationArea,
this.saveHakeemRelatedOnly,
this.retailEnabled,
this.retailLiveForCustomers,
this.bannersList,
this.categoriesList});
ShopsList.fromJson(Map<String, dynamic> json) {
rid = json['rid'];
merchantRid = json['merchantRid'];
merchantName = json['merchantName'];
tenantIdName = json['tenantIdName'];
deliveryMerchantId = json['deliveryMerchantId'];
apiAccessKey = json['apiAccessKey'];
name = json['name'];
tenantStatus = json['tenantStatus'];
tenantType = json['tenantType'];
paymentReportType = json['paymentReportType'];
generalEmail = json['generalEmail'];
generalPhoneNumber = json['generalPhoneNumber'];
postOfficeIntegration = json['postOfficeIntegration'];
hospitalUsername = json['hospitalUsername'];
hospitalPassword = json['hospitalPassword'];
pharmacyUsername = json['pharmacyUsername'];
pharmacyPassword = json['pharmacyPassword'];
hospitalLastChecked = json['hospitalLastChecked'];
pharmacyLastChecked = json['pharmacyLastChecked'];
hasHospitalPassword = json['hasHospitalPassword'];
hasPharmacyPassword = json['hasPharmacyPassword'];
addressLocation = json['addressLocation'];
addressLine = json['addressLine'];
addressLabel = json['addressLabel'];
directions = json['directions'];
longitude = json['longitude'];
latitude = json['latitude'];
defaultHakeemTenant = json['defaultHakeemTenant'];
sendFirstMsg = json['sendFirstMsg'];
allowHakeemPackaging = json['allowHakeemPackaging'];
allowHakeemDispense = json['allowHakeemDispense'];
isActive = json['isActive'];
allowItemsDeletion = json['allowItemsDeletion'];
separatePayment = json['separatePayment'];
providerDeliveryCharge = json['providerDeliveryCharge'];
consumerDeliveryCharge = json['consumerDeliveryCharge'];
paymentProcessingFees = json['paymentProcessingFees'];
hakeemCutCash = json['hakeemCutCash'];
hakeemCutInsurance = json['hakeemCutInsurance'];
hakeemCutBiologic = json['hakeemCutBiologic'];
hakeemChargesCod = json['hakeemChargesCod'];
hakeemChargesCredit = json['hakeemChargesCredit'];
paymentUponDeliveryFees = json['paymentUponDeliveryFees'];
tenantImg = json['tenantImg'];
tenantImgPath = json['tenantImgPath'];
tenantGroup = json['tenantGroup'];
tenantSavingErx = json['tenantSavingErx'];
businessType = json['businessType'];
licenseNumber = json['licenseNumber'];
businessBrandSector = json['businessBrandSector'];
contactPersonName = json['contactPersonName'];
contactPersonPhone = json['contactPersonPhone'];
contactPersonEmail = json['contactPersonEmail'];
defaultCurrency = json['defaultCurrency'];
state = json['state'];
country = json['country'];
iban = json['iban'];
tenantPricingTemplateList = json['tenantPricingTemplateList'];
tenantDeliveryTeamList = json['tenantDeliveryTeamList'];
isMaster = json['isMaster'];
postOffice = json['postOffice'];
deliveryOption = json['deliveryOption'];
allowPatientPickUp = json['allowPatientPickUp'];
license = json['license'];
defaultInquiryUrl = json['defaultInquiryUrl'];
allowErxApproval = json['allowErxApproval'];
allowErxDownload = json['allowErxDownload'];
automationEnabled = json['automationEnabled'];
omnyRxEnabled = json['omnyRxEnabled'];
activeCredsOption = json['activeCredsOption'];
createdOn = json['createdOn'];
allowWhatsAppNotification = json['allowWhatsAppNotification'];
allowSmsNotification = json['allowSmsNotification'];
logo = json['logo'];
logoObject = json['logoObject'];
pharmacyClaimsSavedTo = json['pharmacyClaimsSavedTo'];
pharmacyRemittanceSavedTo = json['pharmacyRemittanceSavedTo'];
pharmacyClaimsIntegration = json['pharmacyClaimsIntegration'];
overviewDashboard = json['overviewDashboard'];
zeinxDashboard = json['zeinxDashboard'];
zeinxEnabled = json['zeinxEnabled'];
logoApiLink = json['logoApiLink'];
hasReferralPartner = json['hasReferralPartner'];
referralPartnerRid = json['referralPartnerRid'];
referralPartner = json['referralPartner'];
locationCity = json['locationCity'];
locationArea = json['locationArea'];
saveHakeemRelatedOnly = json['saveHakeemRelatedOnly'];
retailEnabled = json['retailEnabled'];
retailLiveForCustomers = json['retailLiveForCustomers'];
bannersList = json['bannersList'];
categoriesList = json['categoriesList'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['rid'] = this.rid;
data['merchantRid'] = this.merchantRid;
data['merchantName'] = this.merchantName;
data['tenantIdName'] = this.tenantIdName;
data['deliveryMerchantId'] = this.deliveryMerchantId;
data['apiAccessKey'] = this.apiAccessKey;
data['name'] = this.name;
data['tenantStatus'] = this.tenantStatus;
data['tenantType'] = this.tenantType;
data['paymentReportType'] = this.paymentReportType;
data['generalEmail'] = this.generalEmail;
data['generalPhoneNumber'] = this.generalPhoneNumber;
data['postOfficeIntegration'] = this.postOfficeIntegration;
data['hospitalUsername'] = this.hospitalUsername;
data['hospitalPassword'] = this.hospitalPassword;
data['pharmacyUsername'] = this.pharmacyUsername;
data['pharmacyPassword'] = this.pharmacyPassword;
data['hospitalLastChecked'] = this.hospitalLastChecked;
data['pharmacyLastChecked'] = this.pharmacyLastChecked;
data['hasHospitalPassword'] = this.hasHospitalPassword;
data['hasPharmacyPassword'] = this.hasPharmacyPassword;
data['addressLocation'] = this.addressLocation;
data['addressLine'] = this.addressLine;
data['addressLabel'] = this.addressLabel;
data['directions'] = this.directions;
data['longitude'] = this.longitude;
data['latitude'] = this.latitude;
data['defaultHakeemTenant'] = this.defaultHakeemTenant;
data['sendFirstMsg'] = this.sendFirstMsg;
data['allowHakeemPackaging'] = this.allowHakeemPackaging;
data['allowHakeemDispense'] = this.allowHakeemDispense;
data['isActive'] = this.isActive;
data['allowItemsDeletion'] = this.allowItemsDeletion;
data['separatePayment'] = this.separatePayment;
data['providerDeliveryCharge'] = this.providerDeliveryCharge;
data['consumerDeliveryCharge'] = this.consumerDeliveryCharge;
data['paymentProcessingFees'] = this.paymentProcessingFees;
data['hakeemCutCash'] = this.hakeemCutCash;
data['hakeemCutInsurance'] = this.hakeemCutInsurance;
data['hakeemCutBiologic'] = this.hakeemCutBiologic;
data['hakeemChargesCod'] = this.hakeemChargesCod;
data['hakeemChargesCredit'] = this.hakeemChargesCredit;
data['paymentUponDeliveryFees'] = this.paymentUponDeliveryFees;
data['tenantImg'] = this.tenantImg;
data['tenantImgPath'] = this.tenantImgPath;
data['tenantGroup'] = this.tenantGroup;
data['tenantSavingErx'] = this.tenantSavingErx;
data['businessType'] = this.businessType;
data['licenseNumber'] = this.licenseNumber;
data['businessBrandSector'] = this.businessBrandSector;
data['contactPersonName'] = this.contactPersonName;
data['contactPersonPhone'] = this.contactPersonPhone;
data['contactPersonEmail'] = this.contactPersonEmail;
data['defaultCurrency'] = this.defaultCurrency;
data['state'] = this.state;
data['country'] = this.country;
data['iban'] = this.iban;
data['tenantPricingTemplateList'] = this.tenantPricingTemplateList;
data['tenantDeliveryTeamList'] = this.tenantDeliveryTeamList;
data['isMaster'] = this.isMaster;
data['postOffice'] = this.postOffice;
data['deliveryOption'] = this.deliveryOption;
data['allowPatientPickUp'] = this.allowPatientPickUp;
data['license'] = this.license;
data['defaultInquiryUrl'] = this.defaultInquiryUrl;
data['allowErxApproval'] = this.allowErxApproval;
data['allowErxDownload'] = this.allowErxDownload;
data['automationEnabled'] = this.automationEnabled;
data['omnyRxEnabled'] = this.omnyRxEnabled;
data['activeCredsOption'] = this.activeCredsOption;
data['createdOn'] = this.createdOn;
data['allowWhatsAppNotification'] = this.allowWhatsAppNotification;
data['allowSmsNotification'] = this.allowSmsNotification;
data['logo'] = this.logo;
data['logoObject'] = this.logoObject;
data['pharmacyClaimsSavedTo'] = this.pharmacyClaimsSavedTo;
data['pharmacyRemittanceSavedTo'] = this.pharmacyRemittanceSavedTo;
data['pharmacyClaimsIntegration'] = this.pharmacyClaimsIntegration;
data['overviewDashboard'] = this.overviewDashboard;
data['zeinxDashboard'] = this.zeinxDashboard;
data['zeinxEnabled'] = this.zeinxEnabled;
data['logoApiLink'] = this.logoApiLink;
data['hasReferralPartner'] = this.hasReferralPartner;
data['referralPartnerRid'] = this.referralPartnerRid;
data['referralPartner'] = this.referralPartner;
data['locationCity'] = this.locationCity;
data['locationArea'] = this.locationArea;
data['saveHakeemRelatedOnly'] = this.saveHakeemRelatedOnly;
data['retailEnabled'] = this.retailEnabled;
data['retailLiveForCustomers'] = this.retailLiveForCustomers;
data['bannersList'] = this.bannersList;
data['categoriesList'] = this.categoriesList;
return data;
}
}
class ProductsList {
int? rid;
int? tenantRid;
Null? tenant;
String? title;
String? description;
Null? currency;
int? price;
int? salePrice;
int? stockValue;
String? sku;
String? barcode;
bool? status;
Null? isDeleted;
Null? logo;
Null? logoObject;
Null? categoriesUpdated;
Null? categoriesList;
Null? logoApiLink;
ProductsList(
{this.rid,
this.tenantRid,
this.tenant,
this.title,
this.description,
this.currency,
this.price,
this.salePrice,
this.stockValue,
this.sku,
this.barcode,
this.status,
this.isDeleted,
this.logo,
this.logoObject,
this.categoriesUpdated,
this.categoriesList,
this.logoApiLink});
ProductsList.fromJson(Map<String, dynamic> json) {
rid = json['rid'];
tenantRid = json['tenantRid'];
tenant = json['tenant'];
title = json['title'];
description = json['description'];
currency = json['currency'];
price = json['price'];
salePrice = json['salePrice'];
stockValue = json['stockValue'];
sku = json['sku'];
barcode = json['barcode'];
status = json['status'];
isDeleted = json['isDeleted'];
logo = json['logo'];
logoObject = json['logoObject'];
categoriesUpdated = json['categoriesUpdated'];
categoriesList = json['categoriesList'];
logoApiLink = json['logoApiLink'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['rid'] = this.rid;
data['tenantRid'] = this.tenantRid;
data['tenant'] = this.tenant;
data['title'] = this.title;
data['description'] = this.description;
data['currency'] = this.currency;
data['price'] = this.price;
data['salePrice'] = this.salePrice;
data['stockValue'] = this.stockValue;
data['sku'] = this.sku;
data['barcode'] = this.barcode;
data['status'] = this.status;
data['isDeleted'] = this.isDeleted;
data['logo'] = this.logo;
data['logoObject'] = this.logoObject;
data['categoriesUpdated'] = this.categoriesUpdated;
data['categoriesList'] = this.categoriesList;
data['logoApiLink'] = this.logoApiLink;
return data;
}
}
Editor is loading...
Leave a Comment