WIP: Moderation type registry #26

Closed
cswimr wants to merge 146 commits from aurora-3rd-party into main
Showing only changes of commit 58303b8e9c - Show all commits

View file

@ -68,3 +68,7 @@ class Moderation(BaseModel):
return cls(**case) return cls(**case)
return None 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)