Makes LibxcFunc obey the general json interface used in pymatgen for
        easier serialization.

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