TransactionTerminal.fromMap constructor
TransactionTerminal.fromMap(
- Map<String, dynamic> map
)
Implementation
factory TransactionTerminal.fromMap(Map<String, dynamic> map) {
return TransactionTerminal(
request:
SendPosPaymentModel.fromMap(map['request'] as Map<String, dynamic>),
result: ResponseOperationPaymentModel.fromMap(
map['result'] as Map<String, dynamic>),
checkCalled: map['checkCalled'] as bool,
checkCheckSystem: map['checkCheckSystem'] != null
? map['checkCheckSystem'] as String
: null,
checkPaySystem: map['checkPaySystem'] != null
? map['checkPaySystem'] as String
: null,
createAtUTC:
DateTime.fromMillisecondsSinceEpoch(map['createAtUTC'] as int),
idTransactionInt: map['idTransactionInt'] != null
? map['idTransactionInt'] as int
: null,
idTransactionString: map['idTransactionString'] as String,
payCalled: map['payCalled'] as bool,
refundCalled: map['refundCalled'] as bool,
sumFull: map['sumFull'] as double,
transactionType: TransactionType.paySuccessAfterCheck,
);
}