getAllFromStation static method
Will get a PcoCollection
containing ALL PcoCheckInsCheckInGroup objects (expecting many)
using a path like this: /check-ins/v2/stations/$stationId/check_in_groups
Available Query Filters:
canceled
printed
ready
skipped
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.
This function forces the query.getAll
to be true.
Implementation
static Future<PcoCollection<PcoCheckInsCheckInGroup>> getAllFromStation(
String stationId, {
String? id,
PcoCheckInsCheckInGroupQuery? query,
bool includeAllRelated = false,
bool includeCheckIns = false,
bool includeEventPeriod = false,
bool includePrintStation = false,
}) async {
query ??= PcoCheckInsCheckInGroupQuery();
query.getAll = true;
if (includeAllRelated)
query.include.addAll(PcoCheckInsCheckInGroup.canInclude);
if (includeCheckIns) query.include.add('check_ins');
if (includeEventPeriod) query.include.add('event_period');
if (includePrintStation) query.include.add('print_station');
var url = '/check-ins/v2/stations/$stationId/check_in_groups';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoCheckInsCheckInGroup>(url,
query: query, apiVersion: kApiVersion);
}