parseResponse method
Parses the response body
Extend this to add non-standard behavior
Implementation
@override
Response parseResponse(Map<String, dynamic> body) {
final span = _hub.getSpan()?.startChild(
'serialize.http.client',
description: 'Response deserialization '
'from JSON map to Response object',
);
Response result;
try {
result = inner.parseResponse(body);
span?.status = const SpanStatus.ok();
} catch (e) {
span?.status = const SpanStatus.unknownError();
span?.throwable = e;
rethrow;
} finally {
unawaited(span?.finish());
}
return result;
}