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