code: def to_dict(self):
          
          result = {
              'type': get_qualified_name(self),
              'fitted': self.fitted,
              'constant_value': self.constant_value
          }
  
          if not self.fitted:
              return result
  
          result.update(self._fit_params())
          return result
docs: Returns parameters to replicate the distribution.