getOrNull

fun getOrNull(key: Long): DataItem?

Gets the value of a key in a map or null if the key doesn't exist.

Return

the DataItem for the given key or null if the key doesn't exist.

Parameters

key

the key to get the value for.

Throws

if the data item isn't a CborMap.