code: def to_list_of_dicts(self, **kwargs):
          
          if kwargs:
              return self.filter(**kwargs).to_list_of_dicts()
          return [param.to_dict() for param in self._params]
docs: Convert the :class:`ParameterSet` to a list of the dictionary representation
          of each :class:`Parameter`
  
          :return: list of dicts