PcoPeopleEmailQuery constructor

PcoPeopleEmailQuery({
  1. String? whereAddress,
  2. String? whereBlocked,
  3. String? whereCreatedAt,
  4. String? whereLocation,
  5. String? wherePrimary,
  6. String? whereUpdatedAt,
  7. PcoPeopleEmailOrder? orderBy,
  8. bool reverse = false,
  9. int perPage = 25,
  10. int pageOffset = 0,
  11. Map<String, String> extraParams = const {},
  12. List<PlanningCenterApiWhere>? where,
  13. Iterable<String> filter = const <String>[],
  14. String? order,
  15. Iterable<String> include = const <String>[],
})

Implementation

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

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

  /// Query by `created_at`
  /// query on a specific created_at, url example: ?where[created_at]=2000-01-01T12:00:00Z
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereCreatedAt,

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

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

  /// Query by `updated_at`
  /// query on a specific updated_at, url example: ?where[updated_at]=2000-01-01T12:00:00Z
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereUpdatedAt,
  PcoPeopleEmailOrder? 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 (whereAddress != null)
    where.add(PlanningCenterApiWhere.parse('address', whereAddress));
  if (whereBlocked != null)
    where.add(PlanningCenterApiWhere.parse('blocked', whereBlocked));
  if (whereCreatedAt != null)
    where.add(PlanningCenterApiWhere.parse('created_at', whereCreatedAt));
  if (whereLocation != null)
    where.add(PlanningCenterApiWhere.parse('location', whereLocation));
  if (wherePrimary != null)
    where.add(PlanningCenterApiWhere.parse('primary', wherePrimary));
  if (whereUpdatedAt != null)
    where.add(PlanningCenterApiWhere.parse('updated_at', whereUpdatedAt));

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