Transaction.fromMap constructor
This returns an object of this class
It takes in a Map map
as argument
Implementation
Transaction.fromMap(Map<String, dynamic> map)
: message = map[AppStrings.paidStatusMessageKey] ?? "",
transactionReference =
map[AppStrings.paidTransactionReferenceKey] ?? "",
status = _setTransactionStatus(map[AppStrings.paidStatusMessageKey]),
method = map[AppStrings.paidPaymentMethodKey] ?? "",
date = map[AppStrings.paidDateKey] ?? "",
amountPayable = map[AppStrings.paidAmountPayableKey] ?? "",
customerEmail = map[AppStrings.paidCustomerEmailKey] ?? "",
paymentReference = map[AppStrings.paidPaymentReferenceKey] ?? "",
paymentDescription = map[AppStrings.paidPaymentDescriptionkey] ?? "",
customerName = map[AppStrings.paidCustomerNameKey] ?? "",
currencyCode = map[AppStrings.paidCurrencyCodeKey] ?? "",
amount = map[AppStrings.paidAmountKey] ?? "";