fromBigintOrNull

fun Uuid.Companion.fromBigintOrNull(bigInteger: BigInteger): Uuid?(source)

Tries to convert a BigInteger to a UUID. Only guaranteed to work with BigIntegers that contain the unsigned (positive) integer representation of a UUID, chances are high, though, that it works with random positive BigIntegers between 16 and 14 bytes long.

Returns null if conversion fails. Never throws.