getEvents method

Will get a collection of PcoCalendarEvent objects (expecting many) using a path like this: https://api.planningcenteronline.com/calendar/v2/tag_groups/1/events

Implementation

Future<PcoCollection<PcoCalendarEvent>> getEvents(
    {PcoCalendarEventQuery? query}) async {
  query ??= PcoCalendarEventQuery();
  var url = '$apiEndpoint/events';
  return PcoCollection.fromApiCall<PcoCalendarEvent>(url,
      query: query, apiVersion: apiVersion);
}