getSingleFromEventAndNote static method

Future<PcoGroupsOwner?> getSingleFromEventAndNote(
  1. String eventId,
  2. String noteId,
  3. String id, {
  4. PcoGroupsOwnerQuery? query,
})

Will get a single PcoGroupsOwner object using a path like this: /groups/v2/events/$eventId/notes/$noteId/owner/[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<PcoGroupsOwner?> getSingleFromEventAndNote(
  String eventId,
  String noteId,
  String id, {
  PcoGroupsOwnerQuery? query,
}) async {
  query ??= PcoGroupsOwnerQuery();

  var url = '/groups/v2/events/$eventId/notes/$noteId/owner/$id';
  var retval = await PcoCollection.fromApiCall<PcoGroupsOwner>(url,
      query: query, apiVersion: kApiVersion);
  return retval.items.isEmpty ? null : retval.items.first;
}