toUUID

expect fun String.toUUID(): UUID

Convert string to UUID. Accepts simple and hyphenated notations.

Throws

IllegalArgumentException

if string is not a valid UUID.

actual fun String.toUUID(): UUID