json method

Future json()

Returns a Future containing the body text parsed as a json object. This object could be anything that can be represented by json e.g. a map, a list, a string, a number, a bool...

Implementation

Future<dynamic> json() async => jsonDecode(await body());