toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'orderId': orderId,
'terminalId': terminalId,
'transactionId': transactionId,
'merchantId': merchantId,
'type': type.value,
'method': method,
'amount': amount,
'currency': currency?.code,
'timestamp': timestamp,
'truncatedPan': truncatedPan,
'cardLabel': cardLabel,
'posEntryMode': posEntryMode,
'terminalVerificationResult': terminalVerificationResult,
'aid': aid,
'customerResponseCode': customerResponseCode,
};
}