PcoPeoplePhoneNumberQuery constructor
PcoPeoplePhoneNumberQuery({
- String? whereCarrier,
- String? whereCreatedAt,
- String? whereLocation,
- String? whereNumber,
- String? wherePrimary,
- String? whereUpdatedAt,
- PcoPeoplePhoneNumberOrder? 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
PcoPeoplePhoneNumberQuery({
/// Query by `carrier`
/// query on a specific carrier, url example: ?where[carrier]=string
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereCarrier,
/// 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 `number`
/// query on a specific number, url example: ?where[number]=string
/// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
String? whereNumber,
/// 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,
PcoPeoplePhoneNumberOrder? 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 (whereCarrier != null)
where.add(PlanningCenterApiWhere.parse('carrier', whereCarrier));
if (whereCreatedAt != null)
where.add(PlanningCenterApiWhere.parse('created_at', whereCreatedAt));
if (whereLocation != null)
where.add(PlanningCenterApiWhere.parse('location', whereLocation));
if (whereNumber != null)
where.add(PlanningCenterApiWhere.parse('number', whereNumber));
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);
}