getTeamLeaders method

Will get a collection of PcoServicesTeamLeader objects (expecting many) using a path like this: https://api.planningcenteronline.com/services/v2/people/1/team_leaders

Available Query Filters:

  • not_archived
  • not_deleted

Implementation

Future<PcoCollection<PcoServicesTeamLeader>> getTeamLeaders(
    {PcoServicesTeamLeaderQuery? query}) async {
  query ??= PcoServicesTeamLeaderQuery();
  var url = '$apiEndpoint/team_leaders';
  return PcoCollection.fromApiCall<PcoServicesTeamLeader>(url,
      query: query, apiVersion: apiVersion);
}