toExchangeProtocolNameOrNull

Safe parsing: Convert String to ExchangeProtocolName, returns null if invalid.

Protocol names must be lowercase alphanumeric with hyphens.

Example:

val protocol = "didcomm".toExchangeProtocolNameOrNull()
// Use ExchangeProtocolName.DidComm constant for known protocols
val knownProtocol = ExchangeProtocolName.DidComm