getSingle static method
Will get a single PcoGivingPerson
object
using a path like this: /giving/v2/people/[id]
Available Query Filters:
has_donated
filter to people with at least one associated donation
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<PcoGivingPerson?> getSingle(
String id, {
PcoGivingPersonQuery? query,
}) async {
query ??= PcoGivingPersonQuery();
var url = '/giving/v2/people/$id';
var retval = await PcoCollection.fromApiCall<PcoGivingPerson>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}