jsonBody property

Future<Object?> jsonBody

Returns the json object decoded from response body by calling RestResponse.jsonBody after converting the response to RestResponse.

Returns the Json object by parsing the response body string. The response is json decoded synchronously.

For large response body, try jsonBodyAsync.

Implementation

Future<Object?> get jsonBody {
  return _thenRest((restResponse) {
    return restResponse.jsonBody;
  });
}