bodyJson property

dynamic get bodyJson

Returns the response body as a JSON object.

Implementation

dynamic get bodyJson {
  try {
    return jsonDecode(this.body);
  } catch (_) {
    return null;
  }
}