getSingleFromAttachment static method
Future<PcoServicesZoom?>
getSingleFromAttachment(
- String attachmentId,
- String id, {
- PcoServicesZoomQuery? query,
Will get a single PcoServicesZoom
object
using a path like this: /services/v2/attachments/$attachmentId/zooms/[id]
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<PcoServicesZoom?> getSingleFromAttachment(
String attachmentId,
String id, {
PcoServicesZoomQuery? query,
}) async {
query ??= PcoServicesZoomQuery();
var url = '/services/v2/attachments/$attachmentId/zooms/$id';
var retval = await PcoCollection.fromApiCall<PcoServicesZoom>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}