getEvent method

Will get a collection of PcoCalendarEvent objects (expecting one) using a path like this: https://api.planningcenteronline.com/calendar/v2/event_instances/1/event_times/1/event

Implementation

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