We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8aa862 commit 0942c69Copy full SHA for 0942c69
1 file changed
ratapi/project.py
@@ -927,7 +927,7 @@ def classlist_script(name, classlist):
927
+ "\n)"
928
)
929
930
- def model_dump(self):
+ def to_dict(self):
931
"""Generate a dictionary representation of the model.
932
933
Returns
@@ -982,7 +982,7 @@ def save(self, filepath: str | Path = "./project.json"):
982
The path to where the project file will be written.
983
"""
984
filepath = Path(filepath).with_suffix(".json")
985
- json_dict = self.model_dump()
+ json_dict = self.to_dict()
986
for file in json_dict["custom_files"]:
987
file["path"] = try_relative_to(file["path"], filepath.parent)
988
filepath.write_text(json.dumps(json_dict))
0 commit comments