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