getAll static method
Future<PcoCollection<PcoPeopleSchoolOption> >
getAll({
- String? id,
- PcoPeopleSchoolOptionQuery? query,
Will get a PcoCollection
containing ALL PcoPeopleSchoolOption objects (expecting many)
using a path like this: /people/v2/school_options
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<PcoPeopleSchoolOption>> getAll({
String? id,
PcoPeopleSchoolOptionQuery? query,
}) async {
query ??= PcoPeopleSchoolOptionQuery();
query.getAll = true;
var url = '/people/v2/school_options';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoPeopleSchoolOption>(url,
query: query, apiVersion: kApiVersion);
}