(self)
return {
            "type": self._type,
            "id": self._id,
            "text": self._text,
            "source": self._source,
        }
Return a dictionary representation to be used by the js
Return a dictionary representation to be used by the js
Return a dictionary representation to be used by the js
def to_view_model(self):
        """
        Return a dictionary representation to be used by the js
        """
        return {
            "type": self._type,
            "id": self._id,
            "text": self._text,
            "source": self._source,
        }
def to_view_model ( self ) : return { "type" : self . _type , "id" : self . _id , "text" : self . _text , "source" : self . _source , }