ExpresspaySaleResult constructor

ExpresspaySaleResult(
  1. Map result
)

Implementation

ExpresspaySaleResult(Map result){
  if(result.containsKey("success")) {
    success = ExpresspaySaleSuccess.fromJson(result["success"]);
  }

  if(result.containsKey("redirect")) {
    redirect = ExpresspaySaleRedirect.fromJson(result["redirect"]);
  }

  if(result.containsKey("secure3d")) {
    secure3d = ExpresspaySale3DS.fromJson(result["secure3d"]);
  }

  if(result.containsKey("recurring")) {
    recurring = ExpresspaySaleRecurring.fromJson(result["recurring"]);
  }

  if(result.containsKey("decline")) {
    decline = ExpresspaySaleDecline.fromJson(result["decline"]);
  }

  if(result.containsKey("error")) {
    error = ExpresspayError.fromJson(result["error"]);
  }

  if(result.containsKey("failure")) {
    failure = result["failure"];
  }

  if(result.containsKey("responseJSON")) {
    responseJSON = result["responseJSON"];
  }
}