code: def as_dict(self):
          
          return {config_name: getattr(self, config_name)
                  for config_name, _ in self._iter_config_props()}
docs: Return all properties and values in a dictionary (includes private properties)