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