SumupPluginCheckoutResponse.fromMap constructor
Null safety
SumupPluginCheckoutResponse.fromMap(- Map response
)
Implementation
SumupPluginCheckoutResponse.fromMap(Map<dynamic, dynamic> response) {
success = response['success'];
transactionCode = response['transactionCode'];
amount = response['amount'];
currency = response['currency'];
vatAmount = response['vatAmount'];
tipAmount = response['tipAmount'];
paymentType = response['paymentType'];
entryMode = response['entryMode'];
installments = response['installments'];
cardType = response['cardType'];
cardLastDigits = response['cardLastDigits'];
//products = response['products'];
// some parameters are available only for Android
if (Platform.isAndroid) {
foreignTransactionId = response['foreignTransactionId'];
receiptSent = response['receiptSent'];
}
}