EcommerceData.fromJson constructor
EcommerceData.fromJson(
- Map json_
Implementation
EcommerceData.fromJson(core.Map json_)
: this(
actionType: json_.containsKey('actionType')
? json_['actionType'] as core.String
: null,
ecommerceType: json_.containsKey('ecommerceType')
? json_['ecommerceType'] as core.String
: null,
products: json_.containsKey('products')
? (json_['products'] as core.List)
.map((value) => ProductData.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
transaction: json_.containsKey('transaction')
? TransactionData.fromJson(
json_['transaction'] as core.Map<core.String, core.dynamic>)
: null,
);