mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-10 13:29:35 +00:00
refactor: Refactor storage system (#937)
This commit is contained in:
@@ -41,4 +41,6 @@ class JsonSerializer(Serializer):
|
||||
# Convert bytes back to JSON and then to the specified class
|
||||
json_data = json.loads(data.decode(JSON_ENCODING))
|
||||
# Assume that the cls has an __init__ that accepts a dictionary
|
||||
return cls(**json_data)
|
||||
obj = cls(**json_data)
|
||||
obj.set_serializer(self)
|
||||
return obj
|
||||
|
Reference in New Issue
Block a user