OrderLineItemProduct.fromJson constructor
OrderLineItemProduct.fromJson(
- Map json_
Implementation
OrderLineItemProduct.fromJson(core.Map json_)
: this(
brand:
json_.containsKey('brand') ? json_['brand'] as core.String : null,
condition: json_.containsKey('condition')
? json_['condition'] as core.String
: null,
contentLanguage: json_.containsKey('contentLanguage')
? json_['contentLanguage'] as core.String
: null,
fees: json_.containsKey('fees')
? (json_['fees'] as core.List)
.map((value) => OrderLineItemProductFee.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
gtin: json_.containsKey('gtin') ? json_['gtin'] as core.String : null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
imageLink: json_.containsKey('imageLink')
? json_['imageLink'] as core.String
: null,
itemGroupId: json_.containsKey('itemGroupId')
? json_['itemGroupId'] as core.String
: null,
mpn: json_.containsKey('mpn') ? json_['mpn'] as core.String : null,
offerId: json_.containsKey('offerId')
? json_['offerId'] as core.String
: null,
price: json_.containsKey('price')
? Price.fromJson(
json_['price'] as core.Map<core.String, core.dynamic>)
: null,
shownImage: json_.containsKey('shownImage')
? json_['shownImage'] as core.String
: null,
targetCountry: json_.containsKey('targetCountry')
? json_['targetCountry'] as core.String
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
variantAttributes: json_.containsKey('variantAttributes')
? (json_['variantAttributes'] as core.List)
.map((value) => OrderLineItemProductVariantAttribute.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);