getAll static method

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

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<PcoPeopleAnniversaryCouple>> getAll({
  String? id,
  PcoPeopleAnniversaryCoupleQuery? query,
}) async {
  query ??= PcoPeopleAnniversaryCoupleQuery();
  query.getAll = true;

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