PcoPeopleSchoolOptionQuery constructor
PcoPeopleSchoolOptionQuery({
- String? whereBeginningGrade,
- String? whereEndingGrade,
- String? whereSchoolTypes,
- String? whereSequence,
- String? whereValue,
- PcoPeopleSchoolOptionOrder? orderBy,
- bool reverse = false,
- int perPage = 25,
- int pageOffset = 0,
- Map<
String, String> extraParams = const {}, - List<
PlanningCenterApiWhere> ? where, - Iterable<
String> filter = const <String>[], - String? order,
- 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);
}