getAll static method

Will get a PcoCollection containing ALL PcoPeopleNoteCategorySubscription objects (expecting many) using a path like this: /people/v2/note_category_subscriptions

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<PcoPeopleNoteCategorySubscription>> getAll({
  String? id,
  PcoPeopleNoteCategorySubscriptionQuery? query,
}) async {
  query ??= PcoPeopleNoteCategorySubscriptionQuery();
  query.getAll = true;

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