getAllFromTab static method

Will get a PcoCollection containing ALL PcoPeopleFieldOption objects (expecting many) using a path like this: /people/v2/tabs/$tabId/field_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<PcoPeopleFieldOption>> getAllFromTab(
  String tabId, {
  String? id,
  PcoPeopleFieldOptionQuery? query,
}) async {
  query ??= PcoPeopleFieldOptionQuery();
  query.getAll = true;

  var url = '/people/v2/tabs/$tabId/field_options';
  if (id != null) url += '/$id';
  return PcoCollection.fromApiCall<PcoPeopleFieldOption>(url,
      query: query, apiVersion: kApiVersion);
}