ExternalTransaction.fromJson constructor
ExternalTransaction.fromJson(
- Map json_
Implementation
ExternalTransaction.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
currentPreTaxAmount: json_.containsKey('currentPreTaxAmount')
? Price.fromJson(json_['currentPreTaxAmount']
as core.Map<core.String, core.dynamic>)
: null,
currentTaxAmount: json_.containsKey('currentTaxAmount')
? Price.fromJson(json_['currentTaxAmount']
as core.Map<core.String, core.dynamic>)
: null,
externalTransactionId: json_.containsKey('externalTransactionId')
? json_['externalTransactionId'] as core.String
: null,
oneTimeTransaction: json_.containsKey('oneTimeTransaction')
? OneTimeExternalTransaction.fromJson(json_['oneTimeTransaction']
as core.Map<core.String, core.dynamic>)
: null,
originalPreTaxAmount: json_.containsKey('originalPreTaxAmount')
? Price.fromJson(json_['originalPreTaxAmount']
as core.Map<core.String, core.dynamic>)
: null,
originalTaxAmount: json_.containsKey('originalTaxAmount')
? Price.fromJson(json_['originalTaxAmount']
as core.Map<core.String, core.dynamic>)
: null,
packageName: json_.containsKey('packageName')
? json_['packageName'] as core.String
: null,
recurringTransaction: json_.containsKey('recurringTransaction')
? RecurringExternalTransaction.fromJson(
json_['recurringTransaction']
as core.Map<core.String, core.dynamic>)
: null,
testPurchase: json_.containsKey('testPurchase')
? ExternalTransactionTestPurchase.fromJson(
json_['testPurchase'] as core.Map<core.String, core.dynamic>)
: null,
transactionState: json_.containsKey('transactionState')
? json_['transactionState'] as core.String
: null,
transactionTime: json_.containsKey('transactionTime')
? json_['transactionTime'] as core.String
: null,
userTaxAddress: json_.containsKey('userTaxAddress')
? ExternalTransactionAddress.fromJson(json_['userTaxAddress']
as core.Map<core.String, core.dynamic>)
: null,
);