requestDecoded<T> method
Future<T>
requestDecoded<
T>( - String method,
- String path, {
- QueryMap? query,
- Object? body,
- Object? json,
- RequestOptions? options,
- 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);
}