get static method
Will get a PcoCollection
of PcoServicesTagGroup objects (expecting many)
using a path like this: /services/v2/tag_groups
Available Query Filters:
arrangement
media
person
song
Getting a PcoCollection
is useful even when retrieving a single object
because it contains error data and helper functions.
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.
Implementation
static Future<PcoCollection<PcoServicesTagGroup>> get({
String? id,
PcoServicesTagGroupQuery? query,
bool getAll = false,
bool includeAllRelated = false,
bool includeFolder = false,
bool includeTags = false,
}) async {
query ??= PcoServicesTagGroupQuery();
if (getAll) 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);
}