getBlockouts method

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

Available Query Filters:

  • future
  • past

Implementation

Future<PcoCollection<PcoServicesBlockout>> getBlockouts(
    {PcoServicesBlockoutQuery? query}) async {
  query ??= PcoServicesBlockoutQuery();
  var url = '$apiEndpoint/blockouts';
  return PcoCollection.fromApiCall<PcoServicesBlockout>(url,
      query: query, apiVersion: apiVersion);
}