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