bodyAsMap property
Returns a mutable Map of the fields parsed from the request body.
Note that parseBody must be called first.
Implementation
Map<String, dynamic> get bodyAsMap {
if (!hasParsedBody) {
throw StateError('The request body has not been parsed yet.');
}
// else if (_bodyFields == null) {
// throw StateError('The request body, $_bodyObject, is not a Map.');
//}
return _bodyFields;
}