WIP: Refactor Aurora (3.0.0) #29
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue