toJson method

Map<String, dynamic> toJson()

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,
  };
}