ExpresspayCaptureResult constructor
ExpresspayCaptureResult(
- Map result
Implementation
ExpresspayCaptureResult(Map result){
if(result.containsKey("success")) {
success = ExpresspayCaptureSuccess.fromJson(result["success"]);
}
if(result.containsKey("decline")) {
decline = ExpresspayCaptureDecline.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"];
}
}