toMap method
Returns a map of the properties of the class
Implementation
Map<String, String> toMap() {
final map = {
AppStrings.amounToPayKey: amount,
AppStrings.currencyCodeKey: currencyCode,
AppStrings.customerNameKey: customerName,
AppStrings.customerEmailKey: customerEmail,
AppStrings.customerPhoneNumber: customerPhoneNumber ?? "",
AppStrings.paymentReferenceKey: paymentReference,
AppStrings.paymentDescriptionKey: paymentDescription,
AppStrings.paymentMethodKey: _paymentMethod(paymentMethod)
};
return map;
}