asDidOrNull

fun Iri.asDidOrNull(): Did?

Type narrowing: Convert Iri to Did if it represents a DID.