ExpresspayError.fromJson constructor

ExpresspayError.fromJson(
  1. dynamic json
)

Implementation

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

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