json method

Future json()

covert request body to json/map it can return map or list

Implementation

Future json() async {
  String string = await utf8.decodeStream(_httpRequest);
  var body = string.isEmpty ? {} : jsonDecode(string);
  return body;
}