@classmethod
def from_dict(cls, d):
    """
        Instances the object from a dictionary representation.

        :param d: Dictionary containing a serialised object.
        :return: An object instance.
        """
    if not cls.is_compatible(d):
        raise ValueError(
            'The dictionary does not contain a serialised scalar class.')
    c = cls(value=d['value'], description=d['description'])
    return c
