treatsAsNullableShort

fun JsonElement?.treatsAsNullableShort(defValue: Short? = null): Short?

Method used to treats a JsonElement value as nullable Short

Return

the JsonElement as nullable Short

Parameters

defValue

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