TransactionData.fromJson constructor
TransactionData.fromJson(
- Map json_
Implementation
TransactionData.fromJson(core.Map json_)
: this(
transactionId: json_.containsKey('transactionId')
? json_['transactionId'] as core.String
: null,
transactionRevenue: json_.containsKey('transactionRevenue')
? (json_['transactionRevenue'] as core.num).toDouble()
: null,
transactionShipping: json_.containsKey('transactionShipping')
? (json_['transactionShipping'] as core.num).toDouble()
: null,
transactionTax: json_.containsKey('transactionTax')
? (json_['transactionTax'] as core.num).toDouble()
: null,
);