ResponseData.fromHttpResponse constructor
ResponseData.fromHttpResponse(
- Response response
Implementation
factory ResponseData.fromHttpResponse(Response response) {
return ResponseData(
statusCode: response.statusCode,
headers: response.headers,
body: response.body,
contentLength: response.contentLength,
isRedirect: response.isRedirect,
url: response.request!.url.toString(),
method: methodFromString(response.request!.method),
persistentConnection: response.persistentConnection,
);
}