@classmethod
def from_dict(cls, d):
    """
        Instances the class from a dictionary representation.
        
        :param d: Dictionary containing a serialised object. 
        :return: An object instance.
        """
    raise NotImplementedError('This method must be implemented by sub-classes.'
        )
