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