getGroups method

Will get a collection of PcoGroupsGroup objects (expecting many) using a path like this: https://api.planningcenteronline.com/groups/v2/group_types/1/groups

Implementation

Future<PcoCollection<PcoGroupsGroup>> getGroups(
    {PcoGroupsGroupQuery? query}) async {
  query ??= PcoGroupsGroupQuery();
  var url = '$apiEndpoint/groups';
  return PcoCollection.fromApiCall<PcoGroupsGroup>(url,
      query: query, apiVersion: apiVersion);
}