booleanOrNull

abstract val booleanOrNull: Boolean?(source)

The boolean value if isBoolean; null otherwise.

Return

The boolean value, or null if the primitive is not a boolean.