46 lines
1.3 KiB
Dart
46 lines
1.3 KiB
Dart
class StoreItem{
|
|
int? id;
|
|
String? storeImage;
|
|
String? storeDoc;
|
|
String? storeName;
|
|
String? ownerName;
|
|
String? whatsAppNumber;
|
|
String? address1;
|
|
String? address2;
|
|
int? pincode;
|
|
String? location;
|
|
String? features;
|
|
String? disclaimer;
|
|
bool? storeStatus;
|
|
bool? pickupEnabled;
|
|
bool? codEnabled;
|
|
bool? discountEnabled;
|
|
bool? prescriptionEnabled;
|
|
String? returnPolicy;
|
|
String? upi;
|
|
String? wideDiscount;
|
|
|
|
StoreItem.fromJson(Map<String, dynamic> json){
|
|
id = json["id"] ?? 0;
|
|
storeImage = json["storeImage"] ?? "";
|
|
storeDoc = json["storeDoc"] ?? "";
|
|
storeName = json["storeName"] ?? "";
|
|
ownerName = json["ownerName"] ?? "";
|
|
whatsAppNumber = json["whatsAppNumber"] ?? "";
|
|
address1 = json["address1"] ?? "";
|
|
address2 = json["address2"] ?? "";
|
|
pincode = json["pincode"] ?? 0;
|
|
location = json["location"] ?? "";
|
|
features = json["features"] ?? "";
|
|
disclaimer = json["disclaimer"] ?? "";
|
|
storeStatus = (json["storeStatus"] ?? 1) == 1;
|
|
prescriptionEnabled = (json["enablePrescription"] ?? 1) == 1;
|
|
pickupEnabled = (json["pickup"] ?? 1) == 1;
|
|
codEnabled = (json["cashondelivery"] ?? 1) == 1;
|
|
discountEnabled = (json["wideDiscountType"] ?? 1) == 1;
|
|
returnPolicy = json["returnPolicy"] ?? "";
|
|
upi = json["upi"] ?? "";
|
|
wideDiscount = json["wideDiscount"] ?? "0";
|
|
}
|
|
}
|