requestBody function
Implementation
Future requestBody() async {
final whereMethod = ['post', 'patch', 'put', 'delete']
.where((method) => method == globalHttpRequest?.method.toLowerCase())
.toList();
if (whereMethod.isNotEmpty) {
return await RequestBody.extractBody(request: globalHttpRequest!);
}
return {};
}