toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of ApiErrorResponse.

Implementation

Map<String, dynamic> toJson() {
  return {'requestId': requestId, 'error': error};
}