(self, message: "Message")
return self.encoder({"metadata": message.get_metadata(), "kwargs": message.get_kwargs()})
Takes a message object and returns a serialised string representation
Takes a message object and returns a serialised string representation
Takes a message object and returns a serialised string representation
def __call__(self, message: "Message") -> str:
        """Takes a message object and returns a serialised string representation"""
        return self.encoder({"metadata": message.get_metadata(), "kwargs": message.get_kwargs()})
def __call__ ( self , message : "Message" ) -> str : return self . encoder ( { "metadata" : message . get_metadata ( ) , "kwargs" : message . get_kwargs ( ) } )