getAllFromAttachment static method
Future<PcoCollection<PcoServicesZoom> >
getAllFromAttachment(
- String attachmentId, {
- String? id,
- PcoServicesZoomQuery? query,
Will get a PcoCollection
containing ALL PcoServicesZoom objects (expecting many)
using a path like this: /services/v2/attachments/$attachmentId/zooms
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<PcoServicesZoom>> getAllFromAttachment(
String attachmentId, {
String? id,
PcoServicesZoomQuery? query,
}) async {
query ??= PcoServicesZoomQuery();
query.getAll = true;
var url = '/services/v2/attachments/$attachmentId/zooms';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoServicesZoom>(url,
query: query, apiVersion: kApiVersion);
}