HeraRequest constructor

HeraRequest({
  1. User? user,
  2. User? userUpdate,
  3. Query? query,
  4. String? namespace,
  5. Iterable<User>? users,
  6. Token? token,
  7. Config? config,
  8. String? cloudToken,
  9. String? tokenPointer,
  10. String? privateKey,
})

Implementation

factory HeraRequest({
  User? user,
  User? userUpdate,
  Query? query,
  $core.String? namespace,
  $core.Iterable<User>? users,
  Token? token,
  Config? config,
  $core.String? cloudToken,
  $core.String? tokenPointer,
  $core.String? privateKey,
}) {
  final _result = create();
  if (user != null) {
    _result.user = user;
  }
  if (userUpdate != null) {
    _result.userUpdate = userUpdate;
  }
  if (query != null) {
    _result.query = query;
  }
  if (namespace != null) {
    _result.namespace = namespace;
  }
  if (users != null) {
    _result.users.addAll(users);
  }
  if (token != null) {
    _result.token = token;
  }
  if (config != null) {
    _result.config = config;
  }
  if (cloudToken != null) {
    _result.cloudToken = cloudToken;
  }
  if (tokenPointer != null) {
    _result.tokenPointer = tokenPointer;
  }
  if (privateKey != null) {
    _result.privateKey = privateKey;
  }
  return _result;
}