getAllFromPerson static method
Future<PcoCollection<PcoServicesAvailableSignup> >
getAllFromPerson(
- String personId, {
- String? id,
- PcoServicesAvailableSignupQuery? query,
- bool includeSignupSheets = false,
Will get a PcoCollection
containing ALL PcoServicesAvailableSignup objects (expecting many)
using a path like this: /services/v2/people/$personId/available_signups
Available Query Filters:
current_organization
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<PcoServicesAvailableSignup>> getAllFromPerson(
String personId, {
String? id,
PcoServicesAvailableSignupQuery? query,
bool includeSignupSheets = false,
}) async {
query ??= PcoServicesAvailableSignupQuery();
query.getAll = true;
if (includeSignupSheets) query.include.add('signup_sheets');
var url = '/services/v2/people/$personId/available_signups';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoServicesAvailableSignup>(url,
query: query, apiVersion: kApiVersion);
}