getIndexStatisticsWithHttpInfo method
Performs an HTTP 'GET /client/statistics' operation and returns the Response
.
Parameters:
Implementation
Future<Response> getIndexStatisticsWithHttpInfo({ String? from, String? to, }) async {
// ignore: prefer_const_declarations
final path = r'/client/statistics';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (from != null) {
queryParams.addAll(_queryParams('', 'from', from));
}
if (to != null) {
queryParams.addAll(_queryParams('', 'to', to));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}