getTeam method

Will get a collection of PcoServicesTeam objects (expecting one) using a path like this: https://api.planningcenteronline.com/services/v2/service_types/1/plan_times/1/split_team_rehearsal_assignments/1/team

Implementation

Future<PcoCollection<PcoServicesTeam>> getTeam(
    {PcoServicesTeamQuery? query}) async {
  query ??= PcoServicesTeamQuery();
  var url = '$apiEndpoint/team';
  return PcoCollection.fromApiCall<PcoServicesTeam>(url,
      query: query, apiVersion: apiVersion);
}