objects<S, T> method
If the response body is a JSONObject (and not a JSONArray),
use arrayKey
to specify the key under which the array is stored.
Implementation
Stream<T> objects<S, T>(
String method,
String path,
JSONConverter<S, T> converter, {
int? pages,
Map<String, String>? headers,
Map<String, dynamic>? params,
String? body,
int statusCode = 200,
String? preview,
String? arrayKey,
}) {
return jsonObjects<S>(
method,
path,
pages: pages,
headers: headers,
params: params,
body: body,
statusCode: statusCode,
preview: preview,
arrayKey: arrayKey,
).map(converter);
}