Region.fromJson constructor
Region.fromJson(
- Map json_
Implementation
Region.fromJson(core.Map json_)
: this(
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
geotargetArea: json_.containsKey('geotargetArea')
? RegionGeoTargetArea.fromJson(
json_['geotargetArea'] as core.Map<core.String, core.dynamic>)
: null,
merchantId: json_.containsKey('merchantId')
? json_['merchantId'] as core.String
: null,
postalCodeArea: json_.containsKey('postalCodeArea')
? RegionPostalCodeArea.fromJson(json_['postalCodeArea']
as core.Map<core.String, core.dynamic>)
: null,
regionId: json_.containsKey('regionId')
? json_['regionId'] as core.String
: null,
regionalInventoryEligible:
json_.containsKey('regionalInventoryEligible')
? json_['regionalInventoryEligible'] as core.bool
: null,
shippingEligible: json_.containsKey('shippingEligible')
? json_['shippingEligible'] as core.bool
: null,
);