code: def to_dict(self):
          '''Save this configuration set into a dictionary.'''
          d = {'id': self.id}
          data = []
          for c in self._config_data:
              data.append(c.to_dict())
          if data:
              d['configurationData'] = data
          return f to_dict(self):
          '''Save this configuration set into a dictionary.'''
          d = {'id': self.id}
          data = []
          for c in self._config_data:
              data.append(c.to_dict())
          if data:
              d['configurationData'] = data
          return d
docs: Save this configuration set into a dictionary.