ApiErrorResponse.fromJson constructor

ApiErrorResponse.fromJson(
  1. Map<String, dynamic> json
)

Creates a ApiErrorResponse instance from a JSON representation.

Implementation

ApiErrorResponse.fromJson(Map<String, dynamic> json) {
  requestId = json['requestId'];
  error = ApiError.fromJson(json['error']);
}