code: def to_dict(self):
          '''Save this configuration data into a dictionary.'''
          d = {'name': self.name}
          if self.data:
              d['data'] = self.data
          return f to_dict(self):
          '''Save this configuration data into a dictionary.'''
          d = {'name': self.name}
          if self.data:
              d['data'] = self.data
          return d
docs: Save this configuration data into a dictionary.