docs: def to_dict(self, remove_nones=False):
          """
          Creates a dictionary representation of the enclave.
  
          :param remove_nones: Whether ``None`` values should be filtered out of the dictionary.  Defaults to ``False``.
          :return: A dictionary representation of the enclave.
          """
  
          if remove_nones:
              return super().to_dict(remove_nones=True)
  
          return {
              'id': self.id,
              'name': self.name,
              'type': self.type
          }