getSingle static method
Will get a single PcoGroupsPerson
object
using a path like this: /groups/v2/people/[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<PcoGroupsPerson?> getSingle(
String id, {
PcoGroupsPersonQuery? query,
}) async {
query ??= PcoGroupsPersonQuery();
var url = '/groups/v2/people/$id';
var retval = await PcoCollection.fromApiCall<PcoGroupsPerson>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}