#NEWLINE# def _convert_single_field( key , value ) : #NEWLINE# #INDENT# field = { #NEWLINE# #INDENT# 'key' : key , #NEWLINE# #UNINDENT# } #NEWLINE# if ( isinstance ( value , dict ) and ( list ( value . keys ( ) ) == [ 'ref' ] ) ) : #NEWLINE# #INDENT# field [ 'refValue' ] = value [ 'ref' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# field [ 'stringValue' ] = value #NEWLINE# #UNINDENT# return field