decodedBody method

T decodedBody()

Decodes the response body into type T.

Implementation

T decodedBody() {
  final decoded = jsonDecode(body);
  return _decoder != null ? _decoder!(decoded) : decoded as T;
}