logResponse method
Implementation
Future<void> logResponse(Response response) async {
var logTemplate = '\n[Response header] ${response.headers.toString()}'
'\n[Response body] ${_jsonUtil.encodeRawJson(response.body)}'
'\n[Response code] ${response.statusCode}'
'\n[Response message] ${response.reasonPhrase}';
developer.log(logTemplate);
}