#NEWLINE# def _serialize( self ) : #NEWLINE# #INDENT# if ( not self . field ) : #NEWLINE# #INDENT# raise RuntimeError ( ( 'Field is required:%s' % self . order ) ) #NEWLINE# #UNINDENT# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# data [ 'field' ] = self . field #NEWLINE# data [ 'precision_threshold' ] = self . precision_threshold #NEWLINE# return data