toCredentialType

fun String.toCredentialType(): CredentialType

String extension functions for ergonomic API usage.

These extensions allow natural string-to-type conversions, making the API more discoverable and easier to use.

Convert string to CredentialType.

Example:

val type = "PersonCredential".toCredentialType()