SearchQuery constructor
SearchQuery({
- OrQuery? orQuery,
- AndQuery? andQuery,
- NotQuery? notQuery,
- TypeQuery? typeQuery,
- 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;
}