Item.fromJson constructor
Item.fromJson(
- Map json_
Implementation
Item.fromJson(core.Map json_)
: this(
additionalItemParameters:
(json_['additionalItemParameters'] as core.List?)
?.map(
(value) => ItemParameter.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
conversionValue: (json_['conversionValue'] as core.num?)?.toDouble(),
customVariables: (json_['customVariables'] as core.List?)
?.map(
(value) => ItemCustomVariable.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
itemId: json_['itemId'] as core.String?,
merchantFeedLabel: json_['merchantFeedLabel'] as core.String?,
merchantFeedLanguageCode:
json_['merchantFeedLanguageCode'] as core.String?,
merchantId: json_['merchantId'] as core.String?,
merchantProductId: json_['merchantProductId'] as core.String?,
quantity: json_['quantity'] as core.String?,
unitPrice: (json_['unitPrice'] as core.num?)?.toDouble(),
);