(self, chapter)
return {
            "start": chapter.start,
            "end": chapter.end,
            "label": chapter.label,
            "advertisement": chapter.advertisement,
            "timestamp": chapter.created,
        }
JSON representation of Chapter for GET response
JSON representation of Chapter for GET response
JSON representation of Chapter for GET response
def chapter_to_json(self, chapter):
        """JSON representation of Chapter for GET response"""
        return {
            "start": chapter.start,
            "end": chapter.end,
            "label": chapter.label,
            "advertisement": chapter.advertisement,
            "timestamp": chapter.created,
        }
def chapter_to_json ( self , chapter ) : return { "start" : chapter . start , "end" : chapter . end , "label" : chapter . label , "advertisement" : chapter . advertisement , "timestamp" : chapter . created , }