json method
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;
}
covert request body to json/map it can return map or list
Future json() async {
String string = await utf8.decodeStream(_httpRequest);
var body = string.isEmpty ? {} : jsonDecode(string);
return body;
}