json method

Future<Object> json()

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

MDN Reference

Implementation

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