AddHumanUserRequest constructor

AddHumanUserRequest({
  1. String? userId,
  2. String? username,
  3. Organisation? organisation,
  4. SetHumanProfile? profile,
  5. SetHumanEmail? email,
  6. Iterable<SetMetadataEntry>? metadata,
  7. Password? password,
  8. HashedPassword? hashedPassword,
  9. Iterable<IDPLink>? idpLinks,
  10. SetHumanPhone? phone,
  11. 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;
}