TotalPayCaptureResult constructor

TotalPayCaptureResult(
  1. Map result
)

Implementation

TotalPayCaptureResult(Map result) {
  if (result.containsKey("success")) {
    success = TotalPayCaptureSuccess.fromJson(result["success"]);
  }
  if (result.containsKey("decline")) {
    decline = TotalPayCaptureDecline.fromJson(result["decline"]);
  }
  if (result.containsKey("error")) {
    error = TotalPayError.fromJson(result["error"]);
  }
  if (result.containsKey("failure")) {
    failure = result["failure"];
  }
  if (result.containsKey("responseJSON")) {
    responseJSON = result["responseJSON"];
  }
}