Gets the value for the given key, returns null if null or wrong type
bool? optBoolean(String key) { final value = _internalMap[key]; return value is bool ? value : null; }