getAllFromPersonAndPlanPerson static method

Future<PcoCollection<PcoServicesPlanPersonTime>> getAllFromPersonAndPlanPerson(
  1. String personId,
  2. String planPersonId, {
  3. String? id,
  4. PcoServicesPlanPersonTimeQuery? query,
})

Will get a PcoCollection containing ALL PcoServicesPlanPersonTime objects (expecting many) using a path like this: /services/v2/people/$personId/plan_people/$planPersonId/plan_person_times

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<PcoServicesPlanPersonTime>>
    getAllFromPersonAndPlanPerson(
  String personId,
  String planPersonId, {
  String? id,
  PcoServicesPlanPersonTimeQuery? query,
}) async {
  query ??= PcoServicesPlanPersonTimeQuery();
  query.getAll = true;

  var url =
      '/services/v2/people/$personId/plan_people/$planPersonId/plan_person_times';
  if (id != null) url += '/$id';
  return PcoCollection.fromApiCall<PcoServicesPlanPersonTime>(url,
      query: query, apiVersion: kApiVersion);
}