getHeadcounts method
Will get a collection of PcoCheckInsHeadcount objects (expecting many)
using a path like this: https://api.planningcenteronline.com/check-ins/v2/attendance_types/1/headcounts
Implementation
Future<PcoCollection<PcoCheckInsHeadcount>> getHeadcounts(
{PcoCheckInsHeadcountQuery? query}) async {
query ??= PcoCheckInsHeadcountQuery();
var url = '$apiEndpoint/headcounts';
return PcoCollection.fromApiCall<PcoCheckInsHeadcount>(url,
query: query, apiVersion: apiVersion);
}