getBoolean

fun getBoolean(key: String): Boolean?

Get the Boolean value corresponding to a given key, or null if the key is not present in the map.