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