toJson method

Map<String, dynamic> toJson()

Converts instance of USSDRequest to json

Implementation

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