toJson method

Map<String, dynamic> toJson()

Converts instance of MpesaPaymentManager to a map

Implementation

Map<String, dynamic> toJson() {
  return {
    'amount': this.amount,
    'currency': this.currency,
    'email': this.email,
    'tx_ref': this.txRef,
    'fullname': this.fullName,
    'phone_number': this.phoneNumber
  };
}