ErrorResponse.fromJson constructor
ErrorResponse.fromJson(
- dynamic json
Implementation
ErrorResponse.fromJson(dynamic json) {
result = json['result'];
errorCode = json['error_code'];
errorMessage = json['error_message'];
if (json['errors'] != null) {
errors = [];
json['errors'].forEach((v) {
errors?.add(Errors.fromJson(v));
});
}
}