getAllFromPerson static method
Future<PcoCollection<PcoCheckInsPass> >
getAllFromPerson(
- String personId, {
- String? id,
- PcoCheckInsPassQuery? query,
- bool includePerson = false,
Will get a PcoCollection
containing ALL PcoCheckInsPass objects (expecting many)
using a path like this: /check-ins/v2/people/$personId/passes
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<PcoCheckInsPass>> getAllFromPerson(
String personId, {
String? id,
PcoCheckInsPassQuery? query,
bool includePerson = false,
}) async {
query ??= PcoCheckInsPassQuery();
query.getAll = true;
if (includePerson) query.include.add('person');
var url = '/check-ins/v2/people/$personId/passes';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoCheckInsPass>(url,
query: query, apiVersion: kApiVersion);
}