Skip to content

Commit

Permalink
[BUG] Add to_dict() function on View objects (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklambourne authored Nov 28, 2023
1 parent 32836d8 commit b8af8d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slackblocks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b8af8d5

Please sign in to comment.