diff --git a/src/aiochris/link/linked.py b/src/aiochris/link/linked.py index 17316de..9ff4bbb 100644 --- a/src/aiochris/link/linked.py +++ b/src/aiochris/link/linked.py @@ -131,6 +131,10 @@ class LinkedModel(Linked, abc.ABC): A class where its fields may be API links. """ + def to_dict(self) -> dict: + """Serialize this object.""" + return serde.to_dict(self) + @classmethod def _has_link(cls, name: str) -> bool: return any(name == field for field in cls._field_names())