#NEWLINE# def serialize( self ) : #NEWLINE# #INDENT# data = OrderedDict ( [ ( STATUS , self . status ) , ( CONTENT_TYPE , self . contentType ) ] ) #NEWLINE# if self . type : #NEWLINE# #INDENT# data [ TYPE ] = self . type . serialize ( ) #NEWLINE# if self . type . ref : #NEWLINE# #INDENT# data [ REF ] = self . type . ref #NEWLINE# #UNINDENT# #UNINDENT# serialize_field ( self , data , DESCRIPTION ) #NEWLINE# if self . headers : #NEWLINE# #INDENT# data [ HEADERS ] = [ ] #NEWLINE# for header in self . headers : #NEWLINE# #INDENT# data [ HEADERS ] . append ( header . serialize ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return data