HeraRequest constructor
HeraRequest({})
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;
}