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