code: def export(self, contentType):
          
          cls = munge.get_codec(contentType)
          codec = cls()
          return codec.dumps(self.__dict__())
docs: Export message to specified contentType via munge
  
          contentType <str> - eg. "json", "yaml"