diff --git a/slackblocks/views.py b/slackblocks/views.py index 7d9c58b..67da02f 100644 --- a/slackblocks/views.py +++ b/slackblocks/views.py @@ -50,6 +50,9 @@ def _resolve(self) -> Dict[str, Any]: view["external_id"] = self.external_id return view + def to_dict(self) -> Dict[str, Any]: + return self._resolve() + def __repr__(self) -> str: return dumps(self._resolve(), indent=4)