EdfaPgError.fromJson constructor

EdfaPgError.fromJson(
  1. dynamic json
)

Implementation

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

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