toHttpErrorFromResponse method
Implementation
HttpResponse toHttpErrorFromResponse() {
return HttpResponse(
createdAt: DateTime.now().millisecondsSinceEpoch,
responseStatusCode: response?.statusCode,
responseStatusMessage: response?.statusMessage,
responseBody: _jsonUtil.encodeRawJson(response?.data),
responseHeader: response?.headers.map,
);
}