getLocation method

Will get a collection of PcoGroupsLocation objects (expecting one) using a path like this: https://api.planningcenteronline.com/groups/v2/events/1/location

Implementation

Future<PcoCollection<PcoGroupsLocation>> getLocation(
    {PcoGroupsLocationQuery? query}) async {
  query ??= PcoGroupsLocationQuery();
  var url = '$apiEndpoint/location';
  return PcoCollection.fromApiCall<PcoGroupsLocation>(url,
      query: query, apiVersion: apiVersion);
}