#NEWLINE# def to_representation( self , obj ) : #NEWLINE# #INDENT# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( obj is not None ) : #NEWLINE# #INDENT# if isinstance ( obj , models . Formula ) : #NEWLINE# #INDENT# ret = obj . properties #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ret = obj #NEWLINE# #UNINDENT# #UNINDENT# return recursively_sort_dict ( ret )