json method

Future<Object> json()

Returns a promise that resolves with the result of parsing the request body as JSON.

MDN reference

Implementation

Future<Object> json() async => jsonCodec.decode(await text());