CreateUserRequest_Human constructor

CreateUserRequest_Human({
  1. SetHumanProfile? profile,
  2. SetHumanEmail? email,
  3. SetHumanPhone? phone,
  4. Password? password,
  5. HashedPassword? hashedPassword,
  6. Iterable<IDPLink>? idpLinks,
  7. String? totpSecret,
  8. Iterable<Metadata>? metadata,
})

Implementation

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