HumanUser constructor

HumanUser({
  1. String? userId,
  2. UserState? state,
  3. String? username,
  4. Iterable<String>? loginNames,
  5. String? preferredLoginName,
  6. HumanProfile? profile,
  7. HumanEmail? email,
  8. HumanPhone? phone,
})

Implementation

factory HumanUser({
  $core.String? userId,
  UserState? state,
  $core.String? username,
  $core.Iterable<$core.String>? loginNames,
  $core.String? preferredLoginName,
  HumanProfile? profile,
  $2.HumanEmail? email,
  $3.HumanPhone? phone,
}) {
  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 (profile != null) {
    $result.profile = profile;
  }
  if (email != null) {
    $result.email = email;
  }
  if (phone != null) {
    $result.phone = phone;
  }
  return $result;
}