def METHOD_NAME(self, config: JsonDict, **kwargs: Any) -> None:
    self.enable_room_list_search = config.get("enable_room_list_search", True)
    alias_creation_rules = config.get("alias_creation_rules")
    if alias_creation_rules is not None:
        self._alias_creation_rules = [
            _RoomDirectoryRule("alias_creation_rules", rule)
            for rule in alias_creation_rules
        ]
    else:
        self._alias_creation_rules = [
            _RoomDirectoryRule("alias_creation_rules", {"action": "allow"})
        ]
    room_list_publication_rules = config.get("room_list_publication_rules")
    if room_list_publication_rules is not None:
        self._room_list_publication_rules = [
            _RoomDirectoryRule("room_list_publication_rules", rule)
            for rule in room_list_publication_rules
        ]
    else:
        self._room_list_publication_rules = [
            _RoomDirectoryRule("room_list_publication_rules", {"action": "allow"})
        ]