ValidateChargeRequest.fromJson constructor

ValidateChargeRequest.fromJson(
  1. Map<String, dynamic> json
)

Initializes ValidateChargeRequest from json

Implementation

ValidateChargeRequest.fromJson(Map<String, dynamic> json) {
  this.otp = json["otp"];
  this.flwRef = json["flw_ref"];
  if(json["type"] != null) {
    this.isBankAccount = json["type"];
  } else {
    this.isBankAccount = false;
  }
}