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