SearchQuery constructor
SearchQuery({
- OrQuery? orQuery,
- AndQuery? andQuery,
- NotQuery? notQuery,
- UserIDQuery? userIdQuery,
- OrganizationIDQuery? organizationIdQuery,
- UsernameQuery? usernameQuery,
- EmailQuery? emailQuery,
- PhoneQuery? phoneQuery,
- StateQuery? stateQuery,
- SchemaIDQuery? schemaIDQuery,
- SchemaTypeQuery? schemaTypeQuery,
Implementation
factory SearchQuery({
OrQuery? orQuery,
AndQuery? andQuery,
NotQuery? notQuery,
UserIDQuery? userIdQuery,
OrganizationIDQuery? organizationIdQuery,
UsernameQuery? usernameQuery,
EmailQuery? emailQuery,
PhoneQuery? phoneQuery,
StateQuery? stateQuery,
SchemaIDQuery? schemaIDQuery,
SchemaTypeQuery? schemaTypeQuery,
}) {
final $result = create();
if (orQuery != null) {
$result.orQuery = orQuery;
}
if (andQuery != null) {
$result.andQuery = andQuery;
}
if (notQuery != null) {
$result.notQuery = notQuery;
}
if (userIdQuery != null) {
$result.userIdQuery = userIdQuery;
}
if (organizationIdQuery != null) {
$result.organizationIdQuery = organizationIdQuery;
}
if (usernameQuery != null) {
$result.usernameQuery = usernameQuery;
}
if (emailQuery != null) {
$result.emailQuery = emailQuery;
}
if (phoneQuery != null) {
$result.phoneQuery = phoneQuery;
}
if (stateQuery != null) {
$result.stateQuery = stateQuery;
}
if (schemaIDQuery != null) {
$result.schemaIDQuery = schemaIDQuery;
}
if (schemaTypeQuery != null) {
$result.schemaTypeQuery = schemaTypeQuery;
}
return $result;
}