JsonRestApiException.fromJsonRestApiResponse constructor
JsonRestApiException.fromJsonRestApiResponse(
- JsonRestApiResponse response, {
- 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,
);