UserResponse constructor

UserResponse({
  1. User? user,
  2. Iterable<User>? users,
  3. Int64? usersAmount,
  4. Token? token,
  5. Iterable<Token>? tokens,
  6. Map<String, String>? publicKeys,
  7. ActiveMeasurement? activeMeasurement,
  8. Config? config,
  9. ActiveHistory? activeHistory,
  10. 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;
}