treatsAsByte

fun JsonElement?.treatsAsByte(defValue: Byte = 0): Byte

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

Return

the JsonElement as null-safe Byte

Parameters

defValue

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