#NEWLINE# def serialize_body( self , response , data , content_type , action ) : #NEWLINE# #INDENT# response . headers [ 'Content-Type' ] = content_type #NEWLINE# if ( data is not None ) : #NEWLINE# #INDENT# serializer = self . get_body_serializer ( content_type ) #NEWLINE# response . body = serializer . serialize ( data , action )