SearchQuery constructor

SearchQuery({
  1. UserNameQuery? userNameQuery,
  2. FirstNameQuery? firstNameQuery,
  3. LastNameQuery? lastNameQuery,
  4. NickNameQuery? nickNameQuery,
  5. DisplayNameQuery? displayNameQuery,
  6. EmailQuery? emailQuery,
  7. StateQuery? stateQuery,
  8. TypeQuery? typeQuery,
  9. LoginNameQuery? loginNameQuery,
  10. InUserIDQuery? inUserIdsQuery,
  11. OrQuery? orQuery,
  12. AndQuery? andQuery,
  13. NotQuery? notQuery,
  14. InUserEmailsQuery? inUserEmailsQuery,
})

Implementation

factory SearchQuery({
  UserNameQuery? userNameQuery,
  FirstNameQuery? firstNameQuery,
  LastNameQuery? lastNameQuery,
  NickNameQuery? nickNameQuery,
  DisplayNameQuery? displayNameQuery,
  EmailQuery? emailQuery,
  StateQuery? stateQuery,
  TypeQuery? typeQuery,
  LoginNameQuery? loginNameQuery,
  InUserIDQuery? inUserIdsQuery,
  OrQuery? orQuery,
  AndQuery? andQuery,
  NotQuery? notQuery,
  InUserEmailsQuery? inUserEmailsQuery,
}) {
  final $result = create();
  if (userNameQuery != null) {
    $result.userNameQuery = userNameQuery;
  }
  if (firstNameQuery != null) {
    $result.firstNameQuery = firstNameQuery;
  }
  if (lastNameQuery != null) {
    $result.lastNameQuery = lastNameQuery;
  }
  if (nickNameQuery != null) {
    $result.nickNameQuery = nickNameQuery;
  }
  if (displayNameQuery != null) {
    $result.displayNameQuery = displayNameQuery;
  }
  if (emailQuery != null) {
    $result.emailQuery = emailQuery;
  }
  if (stateQuery != null) {
    $result.stateQuery = stateQuery;
  }
  if (typeQuery != null) {
    $result.typeQuery = typeQuery;
  }
  if (loginNameQuery != null) {
    $result.loginNameQuery = loginNameQuery;
  }
  if (inUserIdsQuery != null) {
    $result.inUserIdsQuery = inUserIdsQuery;
  }
  if (orQuery != null) {
    $result.orQuery = orQuery;
  }
  if (andQuery != null) {
    $result.andQuery = andQuery;
  }
  if (notQuery != null) {
    $result.notQuery = notQuery;
  }
  if (inUserEmailsQuery != null) {
    $result.inUserEmailsQuery = inUserEmailsQuery;
  }
  return $result;
}