toDidOrNull

inline fun String.toDidOrNull(): Did?

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