get static method
Will get a PcoCollection of PcoCheckInsStation objects (expecting many)
using a path like this: /check-ins/v2/stations
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<PcoCheckInsStation>> get({
String? id,
PcoCheckInsStationQuery? query,
bool getAll = false,
bool includeAllRelated = false,
bool includeEvent = false,
bool includeLocation = false,
bool includePrintStation = false,
bool includeTheme = false,
}) async {
query ??= PcoCheckInsStationQuery();
if (getAll) query.getAll = true;
if (includeAllRelated) query.include.addAll(PcoCheckInsStation.canInclude);
if (includeEvent) query.include.add('event');
if (includeLocation) query.include.add('location');
if (includePrintStation) query.include.add('print_station');
if (includeTheme) query.include.add('theme');
var url = '/check-ins/v2/stations';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoCheckInsStation>(url,
query: query, apiVersion: kApiVersion);
}