def serialize(self) -> dict:
data = {**self}<EOL>if "<STR_LIT>" in self:<EOL><INDENT>data["<STR_LIT>"] = json.dumps(self["<STR_LIT>"])<EOL><DEDENT>return data<EOL>
Serialize the message for sending to slack API

Returns:
    serialized message