Skip to content

Commit 0edb7e4

Browse files
committed
🐛 plaid_metadata
1 parent ae69e82 commit 0edb7e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lunchable/models/transactions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ def to_json(cls, x: Optional[str]) -> Optional[Dict[str, Any]]:
308308
"""
309309
if x is None:
310310
return None
311-
return pydantic_core.from_json(x)
311+
elif isinstance(x, dict):
312+
return x
313+
else:
314+
return pydantic_core.from_json(x)
312315

313316
def get_update_object(self) -> TransactionUpdateObject:
314317
"""

0 commit comments

Comments
 (0)