fulltext/domain.py
def to_dict(self) -> dict:
        """Generate a dict representation of this placeholder."""
        return {
            'identifier': self.identifier,
            'version': self.version,
            'started': self.started.isoformat() if self.started else None,
            'ended': self.ended.isoformat() if self.ended else None,
            'owner': self.owner,
            'task_id': self.task_id,
            'exception': self.exception,
            'status': self.status.value,
            'content': self.content,
            'bucket': self.bucket
        }
Generate a dict representation of this placeholder.
Generate a dict representation of this placeholder.
Generate a dict representation of this placeholder .
def to_dict(self) -> dict:
        return {
            'identifier': self.identifier,
            'version': self.version,
            'started': self.started.isoformat() if self.started else None,
            'ended': self.ended.isoformat() if self.ended else None,
            'owner': self.owner,
            'task_id': self.task_id,
            'exception': self.exception,
            'status': self.status.value,
            'content': self.content,
            'bucket': self.bucket
        }
def to_dict ( self ) -> dict : return { 'identifier' : self . identifier , 'version' : self . version , 'started' : self . started . isoformat ( ) if self . started else None , 'ended' : self . ended . isoformat ( ) if self . ended else None , 'owner' : self . owner , 'task_id' : self . task_id , 'exception' : self . exception , 'status' : self . status . value , 'content' : self . content , 'bucket' : self . bucket }
Generate a dict representation of this placeholder.
Generate a dict representation of this placeholder .
"""Generate a dict representation of this placeholder."""
self