SearchQuery constructor

SearchQuery({
  1. OrQuery? orQuery,
  2. AndQuery? andQuery,
  3. NotQuery? notQuery,
  4. TypeQuery? typeQuery,
  5. StateQuery? stateQuery,
})

Implementation

factory SearchQuery({
  OrQuery? orQuery,
  AndQuery? andQuery,
  NotQuery? notQuery,
  TypeQuery? typeQuery,
  StateQuery? stateQuery,
}) {
  final $result = create();
  if (orQuery != null) {
    $result.orQuery = orQuery;
  }
  if (andQuery != null) {
    $result.andQuery = andQuery;
  }
  if (notQuery != null) {
    $result.notQuery = notQuery;
  }
  if (typeQuery != null) {
    $result.typeQuery = typeQuery;
  }
  if (stateQuery != null) {
    $result.stateQuery = stateQuery;
  }
  return $result;
}