getCategory method

Will get a collection of PcoPeopleListCategory objects (expecting many) using a path like this: https://api.planningcenteronline.com/people/v2/lists/1/category

Implementation

Future<PcoCollection<PcoPeopleListCategory>> getCategory(
    {PcoPeopleListCategoryQuery? query}) async {
  query ??= PcoPeopleListCategoryQuery();
  var url = '$apiEndpoint/category';
  return PcoCollection.fromApiCall<PcoPeopleListCategory>(url,
      query: query, apiVersion: apiVersion);
}