code: def to_dict(self):
          
          data = {
              'name': self.name,
              'video_id': self.video_id,
              'time': self.time,
              'forceStop': self.force_stop,
              'type': self.type,
              'metadata': self.metadata}
          for key in data.keys():
              if data[key] == None:
                  data.pop(key)
          return data
docs: Converts object into a dictionary.