From 0edb7e4293c25b6a6a91402715a167b7d2ffa791 Mon Sep 17 00:00:00 2001 From: Justin Flannery Date: Mon, 29 Jan 2024 16:05:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20plaid=5Fmetadata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunchable/models/transactions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lunchable/models/transactions.py b/lunchable/models/transactions.py index 17839149..26077120 100644 --- a/lunchable/models/transactions.py +++ b/lunchable/models/transactions.py @@ -308,7 +308,10 @@ def to_json(cls, x: Optional[str]) -> Optional[Dict[str, Any]]: """ if x is None: return None - return pydantic_core.from_json(x) + elif isinstance(x, dict): + return x + else: + return pydantic_core.from_json(x) def get_update_object(self) -> TransactionUpdateObject: """