def METHOD_NAME(self, triggers: List[Dict]) -> None:
    content = yaml.safe_dump(dict(triggers=[trigger.to_dict() for trigger in triggers]))
    file_path = self.triggers_file_path
    os.makedirs(os.path.dirname(file_path), exist_ok=True)
    safe_write(file_path, content)