WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit 58303b8e9c - Show all commits

View file

@ -68,3 +68,7 @@ class Moderation(BaseModel):
return cls(**case)
return None
def to_json(self, indent: int = None, file: bool = False):
from aurora.utilities.utils import dump, dumps
return dump(self.model_dump(), indent=indent) if file else dumps(self.model_dump(), indent=indent)