decodeJson method

Future decodeJson({
  1. Object? reviver(
    1. Object? key,
    2. Object? value
    )?,
})

Decodes the body into a JSON object.

Implementation

Future<dynamic> decodeJson(
        {Object? Function(Object? key, Object? value)? reviver}) async =>
    jsonDecode(await decode(utf8), reviver: reviver);