def METHOD_NAME(self) -> str:
    """Create dictionary version of yaml for writing to file."""
    yaml_dict = {
        self.entry_date: {
            "start_date": self.start_date,
            "end_date": self.end_date,
            "excluded_dates": sorted(self.excluded_dates),
            "reason": self.reason,
            "watchers": self.watchers,
            "status": self.status.value,
        }
    }
    if yaml_dict[self.entry_date]["excluded_dates"] == []:
        del yaml_dict[self.entry_date]["excluded_dates"]
    return yaml.dump(
        yaml_dict,
        sort_keys=False,
    )