Store.fromJson constructor
Implementation
Store.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
slug = json['slug'];
domain = null;
isDomainVerified = json['is_domain_verified'];
street = json['street'];
city = json['city'];
state = json['state'];
zip = json['zip'];
country = json['country'];
email = json['email'];
phone = json['phone'];
isActive = json['is_active'];
logo = null;
currency = json['currency'];
timezone = json['timezone'];
weightUnit = json['weight_unit'];
dimensionUnit = json['dimension_unit'];
type = List.castFrom<dynamic, String>(json['type']);
externalLinks = null;
geolocation = json['geolocation'] == null
? null
: Geolocation.fromJson(json['geolocation']);
addToCartButtonText = json['add_to_cart_button_text'];
currencySymbol = json['currency_symbol'];
allowedShippingZones =
AllowedShippingZones.fromJson(json['allowed_shipping_zones']);
additional = Additional.fromJson(json['additional']);
url = json['url'];
}