treatsAsUInt

fun JsonElement?.treatsAsUInt(defValue: UInt): UInt

Method used to treats a JsonElement value as null-safe UInt

Return

the JsonElement as null-safe UInt

Parameters

defValue

The default value to return if the JsonElement is null or is not a UInt value