@classmethod
def from_dict(cls, metadata: dict, kwargs: dict, **extra) ->'Message':
    """Create a message instance given the metadata and kwargs

        Will be used by the serializers
        """
    raise NotImplementedError()
