SearchQuery constructor

SearchQuery({
  1. FirstNameQuery? firstNameQuery,
  2. LastNameQuery? lastNameQuery,
  3. EmailQuery? emailQuery,
  4. UserIDQuery? userIdQuery,
})

Implementation

factory SearchQuery({
  FirstNameQuery? firstNameQuery,
  LastNameQuery? lastNameQuery,
  EmailQuery? emailQuery,
  UserIDQuery? userIdQuery,
}) {
  final $result = create();
  if (firstNameQuery != null) {
    $result.firstNameQuery = firstNameQuery;
  }
  if (lastNameQuery != null) {
    $result.lastNameQuery = lastNameQuery;
  }
  if (emailQuery != null) {
    $result.emailQuery = emailQuery;
  }
  if (userIdQuery != null) {
    $result.userIdQuery = userIdQuery;
  }
  return $result;
}