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