code: def to_dict(self):
          
          return {
              'id': self.set_id,
              'title': self.title,
              'terms': [term.to_dict() for term in self.terms]
          }
docs: Convert WordSet into raw dictionary data.