toJson method
Converts ValidateChargeRequest instance to json
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data["otp"] = this.otp;
data["flw_ref"] = this.flwRef;
if (this.isBankAccount) {
data["type"] = "account";
}
return data;
}