PcoPeopleSchoolOptionQuery constructor

PcoPeopleSchoolOptionQuery({
  1. String? whereBeginningGrade,
  2. String? whereEndingGrade,
  3. String? whereSchoolTypes,
  4. String? whereSequence,
  5. String? whereValue,
  6. PcoPeopleSchoolOptionOrder? orderBy,
  7. bool reverse = false,
  8. int perPage = 25,
  9. int pageOffset = 0,
  10. Map<String, String> extraParams = const {},
  11. List<PlanningCenterApiWhere>? where,
  12. Iterable<String> filter = const <String>[],
  13. String? order,
  14. Iterable<String> include = const <String>[],
})

Implementation

PcoPeopleSchoolOptionQuery({
  /// Query by `beginning_grade`
  /// query on a specific beginning_grade, url example: ?where[beginning_grade]=string
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereBeginningGrade,

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

  /// Query by `school_types`
  /// query on a specific school_types, url example: ?where[school_types]=[]
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereSchoolTypes,

  /// 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,
  PcoPeopleSchoolOptionOrder? 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 (whereBeginningGrade != null)
    where.add(
        PlanningCenterApiWhere.parse('beginning_grade', whereBeginningGrade));
  if (whereEndingGrade != null)
    where.add(PlanningCenterApiWhere.parse('ending_grade', whereEndingGrade));
  if (whereSchoolTypes != null)
    where.add(PlanningCenterApiWhere.parse('school_types', whereSchoolTypes));
  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);
}