getPersonTeamPositionAssignments method

Will get a collection of PcoServicesPersonTeamPositionAssignment objects (expecting many) using a path like this: https://api.planningcenteronline.com/services/v2/service_types/1/team_positions/1/person_team_position_assignments

Available Query Filters:

  • time_preference_options pass an additonal array of time_preference_option_ids as a param to filter to people who prefer those times.use id 'none' to filter people who have no preferred times

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);
}