AddHumanUserRequest constructor
AddHumanUserRequest({
- String? userId,
- String? username,
- Organisation? organisation,
- SetHumanProfile? profile,
- SetHumanEmail? email,
- Iterable<
SetMetadataEntry> ? metadata, - Password? password,
- HashedPassword? hashedPassword,
- Iterable<
IDPLink> ? idpLinks, - SetHumanPhone? phone,
- Organization? organization,
Implementation
factory AddHumanUserRequest({
$core.String? userId,
$core.String? username,
$4.Organisation? organisation,
$5.SetHumanProfile? profile,
$2.SetHumanEmail? email,
$core.Iterable<$5.SetMetadataEntry>? metadata,
$6.Password? password,
$6.HashedPassword? hashedPassword,
$core.Iterable<$7.IDPLink>? idpLinks,
$3.SetHumanPhone? phone,
$4.Organization? organization,
}) {
final $result = create();
if (userId != null) {
$result.userId = userId;
}
if (username != null) {
$result.username = username;
}
if (organisation != null) {
$result.organisation = organisation;
}
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;
}
return $result;
}