Convert to dictionary for YAML serialization.
(self)
| 164 | links: List[Link] = field(default_factory=list) |
| 165 | |
| 166 | def to_dict(self): |
| 167 | """Convert to dictionary for YAML serialization.""" |
| 168 | return { |
| 169 | "title": self.title, |
| 170 | "type": self.change_type, |
| 171 | "authors": [author.to_dict() for author in self.authors], |
| 172 | "links": [link.to_dict() for link in self.links], |
| 173 | } |
| 174 | |
| 175 | |
| 176 | class AuthorParser: |