asJson property
Future
asJson
Returns the request body as json-decoded object, that can be either
Map<String, dynamic>
or List<dynamic>
Example:
var person = Person.fromJson(await request.body.asJson);
Implementation
Future<dynamic> get asJson async => jsonDecode(await asString);