toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'publicKey': publicKey,
'amount': amount,
'currency': currency == Currency.ngn ? "NGN" : "NGN",
'customerFirstName': customerFirstName,
'customerLastName': customerLastName,
'customerEmail': customerEmail,
'customerPhone': customerPhone,
'feeBearer': feeBearer == FeeBearer.business ? "business" : "customer",
'reference': reference,
'paymentMethods': paymentMethods,
'defaultPaymentMethod': defaultPaymentMethod,
};
}