requestCount function

Future requestCount({
  1. required String endpoint,
  2. Map<String, String>? params,
})

Implementation

Future requestCount({required String endpoint, Map<String, String>? params}) async {
  params?.addAll({
    "_count": "*",
    "_count_first": "true",
  });
  return await requestMap(endpoint: endpoint, responseHandler: countFromJson, params: params);
}