code: def as_dict(self):
          
          return {"@module": self.__class__.__module__,
                  "@class": self.__class__.__name__,
                  "frequencies": list(self.frequencies),
                  "densities": list(self.densities)}
docs: Json-serializable dict representation of PhononDos.