toResponse method
Implementation
Response toResponse(RequestOptions options, {bool fromNetwork = false}) {
return Response(
data: deserializeContent(options.responseType, content),
extra: {cacheKey: key, CacheResponse.fromNetwork: fromNetwork},
headers: getHeaders(),
statusCode: 304,
requestOptions: options,
);
}