User constructor

User({
  1. String? userId,
  2. UserState? state,
  3. String? username,
  4. Iterable<String>? loginNames,
  5. String? preferredLoginName,
  6. HumanUser? human,
  7. MachineUser? machine,
})

Implementation

factory User({
  $core.String? userId,
  UserState? state,
  $core.String? username,
  $core.Iterable<$core.String>? loginNames,
  $core.String? preferredLoginName,
  HumanUser? human,
  MachineUser? machine,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (state != null) {
    $result.state = state;
  }
  if (username != null) {
    $result.username = username;
  }
  if (loginNames != null) {
    $result.loginNames.addAll(loginNames);
  }
  if (preferredLoginName != null) {
    $result.preferredLoginName = preferredLoginName;
  }
  if (human != null) {
    $result.human = human;
  }
  if (machine != null) {
    $result.machine = machine;
  }
  return $result;
}