getFromServiceTypeAndPlanTime static method
Future<PcoCollection<PcoServicesSplitTeamRehearsalAssignment> >
getFromServiceTypeAndPlanTime(
- String serviceTypeId,
- String planTimeId, {
- String? id,
- PcoServicesSplitTeamRehearsalAssignmentQuery? query,
- bool getAll = false,
Will get a PcoCollection
of PcoServicesSplitTeamRehearsalAssignment objects (expecting many)
using a path like this: /services/v2/service_types/$serviceTypeId/plan_times/$planTimeId/split_team_rehearsal_assignments
Getting a PcoCollection
is useful even when retrieving a single object
because it contains error data and helper functions.
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
Implementation
static Future<PcoCollection<PcoServicesSplitTeamRehearsalAssignment>>
getFromServiceTypeAndPlanTime(
String serviceTypeId,
String planTimeId, {
String? id,
PcoServicesSplitTeamRehearsalAssignmentQuery? query,
bool getAll = false,
}) async {
query ??= PcoServicesSplitTeamRehearsalAssignmentQuery();
if (getAll) query.getAll = true;
var url =
'/services/v2/service_types/$serviceTypeId/plan_times/$planTimeId/split_team_rehearsal_assignments';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoServicesSplitTeamRehearsalAssignment>(
url,
query: query,
apiVersion: kApiVersion);
}