getAll static method
Future<PcoCollection<PcoServicesTagGroup> >
getAll({
- String? id,
- PcoServicesTagGroupQuery? query,
- bool includeAllRelated = false,
- bool includeFolder = false,
- bool includeTags = false,
Will get a PcoCollection
containing ALL PcoServicesTagGroup objects (expecting many)
using a path like this: /services/v2/tag_groups
Available Query Filters:
arrangement
media
person
song
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<PcoServicesTagGroup>> getAll({
String? id,
PcoServicesTagGroupQuery? query,
bool includeAllRelated = false,
bool includeFolder = false,
bool includeTags = false,
}) async {
query ??= PcoServicesTagGroupQuery();
query.getAll = true;
if (includeAllRelated) query.include.addAll(PcoServicesTagGroup.canInclude);
if (includeFolder) query.include.add('folder');
if (includeTags) query.include.add('tags');
var url = '/services/v2/tag_groups';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoServicesTagGroup>(url,
query: query, apiVersion: kApiVersion);
}