AddHumanUserRequest constructor

AddHumanUserRequest({
  1. String? userId,
  2. String? username,
  3. SetHumanProfile? profile,
  4. SetHumanEmail? email,
  5. Iterable<SetMetadataEntry>? metadata,
  6. Password? password,
  7. HashedPassword? hashedPassword,
  8. Iterable<IDPLink>? idpLinks,
  9. SetHumanPhone? phone,
  10. Organization? organization,
  11. String? totpSecret,
})

Implementation

factory AddHumanUserRequest({
  $core.String? userId,
  $core.String? username,
  $1.SetHumanProfile? profile,
  $2.SetHumanEmail? email,
  $core.Iterable<$1.SetMetadataEntry>? metadata,
  $3.Password? password,
  $3.HashedPassword? hashedPassword,
  $core.Iterable<$4.IDPLink>? idpLinks,
  $5.SetHumanPhone? phone,
  $6.Organization? organization,
  $core.String? totpSecret,
}) {
  final result = create();
  if (userId != null) result.userId = userId;
  if (username != null) result.username = username;
  if (profile != null) result.profile = profile;
  if (email != null) result.email = email;
  if (metadata != null) result.metadata.addAll(metadata);
  if (password != null) result.password = password;
  if (hashedPassword != null) result.hashedPassword = hashedPassword;
  if (idpLinks != null) result.idpLinks.addAll(idpLinks);
  if (phone != null) result.phone = phone;
  if (organization != null) result.organization = organization;
  if (totpSecret != null) result.totpSecret = totpSecret;
  return result;
}