diff --git a/lunchable/models/transactions.py b/lunchable/models/transactions.py index 1783914..2607712 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: """