treatsAsNullableBoolean

fun JsonElement?.treatsAsNullableBoolean(defValue: Boolean? = null): Boolean?

Method used to treats a JsonElement value as nullable Boolean

Return

the JsonElement as nullable Boolean

Parameters

defValue

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