def serialize(self, method="<STR_LIT>", lev=<NUM_LIT:0>, **kwargs):
return getattr(self, "<STR_LIT>" % method)(lev=lev, **kwargs)<EOL>
Convert this instance to another representation. Which representation 
is given by the choice of serialization method.

:param method: A serialization method. Presently 'urlencoded', 'json',
    'jwt' and 'dict' is supported.
:param lev: 
:param kwargs: Extra key word arguments
:return: THe content of this message serialized using a chosen method