treatsAsUShort

fun JsonElement?.treatsAsUShort(defValue: UShort): UShort

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

Return

the JsonElement as null-safe UShort

Parameters

defValue

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