requestDecoded<T> method

Future<T> requestDecoded<T>(
  1. String method,
  2. String path, {
  3. QueryMap? query,
  4. HeadersInit? headers,
  5. Object? body,
  6. Object? json,
  7. RequestOptions? options,
  8. Decoder<T>? decoder,
})

Implementation

Future<T> requestDecoded<T>(
  String method,
  String path, {
  QueryMap? query,
  HeadersInit? headers,
  Object? body,
  Object? json,
  RequestOptions? options,
  Decoder<T>? decoder,
}) async {
  final response = await request(
    method,
    path,
    query: query,
    headers: headers,
    body: body,
    json: json,
    options: options,
  );
  return response.decode<T>(decoder: decoder);
}