HeraResponse constructor
HeraResponse({})
Implementation
factory HeraResponse({
User? user,
$core.Iterable<User>? users,
$fixnum.Int64? amount,
Token? token,
$core.Iterable<Token>? tokens,
$core.Map<$core.String, $core.String>? publicKeys,
Config? config,
LoginSession? loginSession,
$core.String? privateKey,
}) {
final _result = create();
if (user != null) {
_result.user = user;
}
if (users != null) {
_result.users.addAll(users);
}
if (amount != null) {
_result.amount = amount;
}
if (token != null) {
_result.token = token;
}
if (tokens != null) {
_result.tokens.addAll(tokens);
}
if (publicKeys != null) {
_result.publicKeys.addAll(publicKeys);
}
if (config != null) {
_result.config = config;
}
if (loginSession != null) {
_result.loginSession = loginSession;
}
if (privateKey != null) {
_result.privateKey = privateKey;
}
return _result;
}