JsonRestApiException.fromJsonRestApiResponse constructor

JsonRestApiException.fromJsonRestApiResponse(
  1. JsonRestApiResponse response, {
  2. String? reasonPhrase,
})

Creates a new exception from this response.

Implementation

JsonRestApiException.fromJsonRestApiResponse(
  JsonRestApiResponse response, {
  this.reasonPhrase,
}) : super(
        method: response.method,
        endpoint: response.endpoint,
        statusCode: response.statusCode,
        raw: response.raw,
        jsonObject: response.jsonObject,
        jsonArray: response.jsonArray,
      );