def serialize(self):
if self.response is not None:<EOL><INDENT>return {'<STR_LIT>': '<STR_LIT>'}<EOL><DEDENT>if self.update is not None:<EOL><INDENT>return {'<STR_LIT>': '<STR_LIT>'}<EOL><DEDENT>if self.tag is not None:<EOL><INDENT>return {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': self.tag.value,<EOL>}<EOL><DEDENT>if self.subscription is not None:<EOL><INDENT>return {'<STR_LIT>': '<STR_LIT>'}<EOL><DEDENT>
Generates the messaging-type-related part of the message dictionary.