code: def to_json(self):
          
          return {
              'name': self.name,
              'segments': [segment.to_json() for segment in self.segments],
              'meta': self.meta
              }
docs: Converts track to a JSON serializable format
  
          Returns:
              Map with the name, and segments of the track.