SearchQuery constructor

SearchQuery({
  1. OrQuery? orQuery,
  2. AndQuery? andQuery,
  3. NotQuery? notQuery,
  4. UserIDQuery? userIdQuery,
  5. OrganizationIDQuery? organizationIdQuery,
  6. UsernameQuery? usernameQuery,
  7. EmailQuery? emailQuery,
  8. PhoneQuery? phoneQuery,
  9. StateQuery? stateQuery,
  10. SchemaIDQuery? schemaIDQuery,
  11. 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;
}