(self, message: "Message")
return serialized
Takes a message object and returns a serialised dictionary representation

        See the module-level docs (above) for further details
Takes a message object and returns a serialised dictionary representation
Takes a message object and returns a serialised dictionary representation
def __call__(self, message: "Message") -> dict:
        """Takes a message object and returns a serialised dictionary representation

        See the module-level docs (above) for further details
        """
        serialized = message.get_metadata()
        for k, v in message.get_kwargs().items():
            serialized[":{}".format(k)] = self.encoder(v)
        return serialized
def __call__ ( self , message : "Message" ) -> dict : serialized = message . get_metadata ( ) for k , v in message . get_kwargs ( ) . items ( ) : serialized [ ":{}" . format ( k ) ] = self . encoder ( v ) return serialized