GoogleCloudRetailV2PriceInfo.fromJson constructor
GoogleCloudRetailV2PriceInfo.fromJson(
- Map json_
Implementation
GoogleCloudRetailV2PriceInfo.fromJson(core.Map json_)
: this(
cost: json_.containsKey('cost')
? (json_['cost'] as core.num).toDouble()
: null,
currencyCode: json_.containsKey('currencyCode')
? json_['currencyCode'] as core.String
: null,
originalPrice: json_.containsKey('originalPrice')
? (json_['originalPrice'] as core.num).toDouble()
: null,
price: json_.containsKey('price')
? (json_['price'] as core.num).toDouble()
: null,
priceEffectiveTime: json_.containsKey('priceEffectiveTime')
? json_['priceEffectiveTime'] as core.String
: null,
priceExpireTime: json_.containsKey('priceExpireTime')
? json_['priceExpireTime'] as core.String
: null,
priceRange: json_.containsKey('priceRange')
? GoogleCloudRetailV2PriceInfoPriceRange.fromJson(
json_['priceRange'] as core.Map<core.String, core.dynamic>)
: null,
);