jsonBodyAsync property

FutureOr<Object?> jsonBodyAsync

Returns the Json object by parsing the response body string. The response is json decoded asynchronously in an isolate.

For small response body, try jsonBody.

Implementation

FutureOr<Object?> get jsonBodyAsync {
  if ($HandleFeatures.disableAsyncDeserializationWithHandle &&
      didUseHandle(this)) {
    return jsonBody;
  }
  return compute(() => tryDecodeJson(body));
}