getServiceTypes method
Future<PcoCollection<PcoServicesServiceType> >
getServiceTypes({
- PcoServicesServiceTypeQuery? query,
Will get a collection of PcoServicesServiceType objects (expecting many)
using a path like this: https://api.planningcenteronline.com/services/v2/folders/1/service_types
Implementation
Future<PcoCollection<PcoServicesServiceType>> getServiceTypes(
{PcoServicesServiceTypeQuery? query}) async {
query ??= PcoServicesServiceTypeQuery();
var url = '$apiEndpoint/service_types';
return PcoCollection.fromApiCall<PcoServicesServiceType>(url,
query: query, apiVersion: apiVersion);
}