ErrorResponseError.fromJson constructor

ErrorResponseError.fromJson(
  1. Map<String, dynamic> data
)

Returns a ErrorResponseError type from a JSON

Implementation

factory ErrorResponseError.fromJson(Map<String, dynamic> data) {
  var self = ErrorResponseError._();
  self._map["reason"] =
      data['reason'] ?? {throw ArgumentError('reason should not be null')};
  self._map["message"] =
      data['message'] ?? {throw ArgumentError('message should not be null')};
  return self;
}