GoogleCloudRecommendationengineV1beta1ProductDetail.fromJson constructor
GoogleCloudRecommendationengineV1beta1ProductDetail.fromJson(
- Map json_
Implementation
GoogleCloudRecommendationengineV1beta1ProductDetail.fromJson(core.Map json_)
: this(
availableQuantity: json_.containsKey('availableQuantity')
? json_['availableQuantity'] as core.int
: null,
currencyCode: json_.containsKey('currencyCode')
? json_['currencyCode'] as core.String
: null,
displayPrice: json_.containsKey('displayPrice')
? (json_['displayPrice'] as core.num).toDouble()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
itemAttributes: json_.containsKey('itemAttributes')
? GoogleCloudRecommendationengineV1beta1FeatureMap.fromJson(
json_['itemAttributes']
as core.Map<core.String, core.dynamic>)
: null,
originalPrice: json_.containsKey('originalPrice')
? (json_['originalPrice'] as core.num).toDouble()
: null,
quantity: json_.containsKey('quantity')
? json_['quantity'] as core.int
: null,
stockState: json_.containsKey('stockState')
? json_['stockState'] as core.String
: null,
);