PcoPeopleFieldOptionQuery constructor

PcoPeopleFieldOptionQuery(
  1. {String? whereSequence,
  2. String? whereValue,
  3. PcoPeopleFieldOptionOrder? orderBy,
  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

PcoPeopleFieldOptionQuery({
  /// Query by `sequence`
  /// query on a specific sequence, url example: ?where[sequence]=1
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereSequence,

  /// Query by `value`
  /// query on a specific value, url example: ?where[value]=string
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereValue,
  PcoPeopleFieldOptionOrder? orderBy,

  /// 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 (whereSequence != null)
    where.add(PlanningCenterApiWhere.parse('sequence', whereSequence));
  if (whereValue != null)
    where.add(PlanningCenterApiWhere.parse('value', whereValue));

  if (orderBy != null) order = orderString(orderBy, reverse: reverse);
}