getAll static method

Will get a PcoCollection containing ALL PcoGivingPerson objects (expecting many) using a path like this: /giving/v2/people

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.

This function forces the query.getAll to be true.

Implementation

static Future<PcoCollection<PcoGivingPerson>> getAll({
  String? id,
  PcoGivingPersonQuery? query,
}) async {
  query ??= PcoGivingPersonQuery();
  query.getAll = true;

  var url = '/giving/v2/people';
  if (id != null) url += '/$id';
  return PcoCollection.fromApiCall<PcoGivingPerson>(url,
      query: query, apiVersion: kApiVersion);
}