RegionalInventory.fromJson constructor
RegionalInventory.fromJson(
- Map json_
Implementation
RegionalInventory.fromJson(core.Map json_)
: this(
availability: json_.containsKey('availability')
? json_['availability'] as core.String
: null,
customAttributes: json_.containsKey('customAttributes')
? (json_['customAttributes'] as core.List)
.map((value) => CustomAttribute.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
price: json_.containsKey('price')
? Price.fromJson(
json_['price'] as core.Map<core.String, core.dynamic>)
: null,
regionId: json_.containsKey('regionId')
? json_['regionId'] as core.String
: null,
salePrice: json_.containsKey('salePrice')
? Price.fromJson(
json_['salePrice'] as core.Map<core.String, core.dynamic>)
: null,
salePriceEffectiveDate: json_.containsKey('salePriceEffectiveDate')
? json_['salePriceEffectiveDate'] as core.String
: null,
);