PcoPeopleNoteCategoryShareQuery constructor

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

Implementation

PcoPeopleNoteCategoryShareQuery({
  /// include associated person
  /// when true, adds `?include=person` to url
  bool includePerson = false,

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

  /// 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 (includePerson) include.add('person');

  if (wherePermission != null)
    where.add(PlanningCenterApiWhere.parse('permission', wherePermission));
}