AddHumanUserRequest constructor
AddHumanUserRequest({
- String? userId,
- String? username,
- SetHumanProfile? profile,
- SetHumanEmail? email,
- Iterable<
SetMetadataEntry> ? metadata, - Password? password,
- HashedPassword? hashedPassword,
- Iterable<
IDPLink> ? idpLinks, - SetHumanPhone? phone,
- Organization? organization,
- 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;
}