kotlinx-serialization / kotlinx.serialization.json / JsonPrimitive / booleanOrNull

booleanOrNull

(common, js, jvm, native) val booleanOrNull: Boolean?

Returns content of current element as boolean or null if current element is not a valid representation of boolean