code: def to_list(self, **kwargs):
          
          if kwargs:
              return self.filter(**kwargs).to_list()
          return self._params
docs: Convert the :class:`ParameterSet` to a list of :class:`Parameter`s
  
          :return: list of class:`Parameter` objects