#NEWLINE# def serialize( self ) : #NEWLINE# #INDENT# data = OrderedDict ( ) #NEWLINE# if self . params : #NEWLINE# #INDENT# data [ PARAMS ] = [ ] #NEWLINE# for param in self . params : #NEWLINE# #INDENT# data [ PARAMS ] . append ( param . serialize ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# serialize_field ( self , data , CONTENT_TYPE ) #NEWLINE# if self . type : #NEWLINE# #INDENT# data [ TYPE ] = self . type . serialize ( ) #NEWLINE# #UNINDENT# serialize_field ( self , self , DESCRIPTION ) #NEWLINE# return data