PcoWebhooksSubscriptionQuery constructor

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

Implementation

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

  /// 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 (whereApplicationId != null)
    where.add(
        PlanningCenterApiWhere.parse('application_id', whereApplicationId));
}