PcoCheckInsLocationEventPeriodQuery constructor

PcoCheckInsLocationEventPeriodQuery({
  1. bool includeEventPeriod = false,
  2. bool includeLocation = false,
  3. bool includeAllRelated = false,
  4. bool reverse = false,
  5. int perPage = 25,
  6. int pageOffset = 0,
  7. Map<String, String> extraParams = const {},
  8. List<PlanningCenterApiWhere>? where,
  9. Iterable<String> filter = const <String>[],
  10. String? order,
  11. Iterable<String> include = const <String>[],
})

Implementation

PcoCheckInsLocationEventPeriodQuery({
  /// include associated event_period
  /// when true, adds `?include=event_period` to url
  bool includeEventPeriod = false,

  /// include associated location
  /// when true, adds `?include=location` to url
  bool includeLocation = false,

  /// when true, adds `?include=event_period,location` to url parameters
  bool includeAllRelated = false,

  /// reverse the ordering
  bool reverse = false,

  // direct access to super class params
  super.perPage,
  super.pageOffset,
  super.extraParams,
  super.where,
  super.filter,
  super.order,
  super.include,
}) : super() {
  if (includeAllRelated || includeEventPeriod) include.add('event_period');
  if (includeAllRelated || includeLocation) include.add('location');
}