<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export(self, contentType):
 """ Export message to specified contentType via munge contentType <str> - eg. "json", "yaml" """

        cls = munge.get_codec(contentType)
        codec = cls()
        return codec.dumps(self.__dict__())