code: def as_dict(self):
          
          return {"@module": self.__class__.__module__,
                  "@class": self.__class__.__name__,
                  "element": self.symbol}
docs: Makes Element obey the general json interface used in pymatgen for
          easier serialization.