getAllFromGroup static method

Future<PcoCollection<PcoGroupsTag>> getAllFromGroup(
  1. String groupId, {
  2. String? id,
  3. PcoGroupsTagQuery? query,
})

Will get a PcoCollection containing ALL PcoGroupsTag objects (expecting many) using a path like this: /groups/v2/groups/$groupId/tags

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<PcoGroupsTag>> getAllFromGroup(
  String groupId, {
  String? id,
  PcoGroupsTagQuery? query,
}) async {
  query ??= PcoGroupsTagQuery();
  query.getAll = true;

  var url = '/groups/v2/groups/$groupId/tags';
  if (id != null) url += '/$id';
  return PcoCollection.fromApiCall<PcoGroupsTag>(url,
      query: query, apiVersion: kApiVersion);
}