TotalPayError.fromJson constructor

TotalPayError.fromJson(
  1. dynamic json
)

Implementation

TotalPayError.fromJson(dynamic json) {
  result = TotalPayResult.of(json['result']);
  errorCode = json['error_code'];
  errorMessage = json['error_message'];

  if (json['errors'] != null) {
    errors = [];
    json['errors'].forEach((v) {
      errors?.add(TotalPayExactError.fromJson(v));
    });
  }
}