parameters: (self, values)
return_statement: return result
docstring: Convert the ``values`` dictionary into the format of :meth:`write`.
docstring_summary: Convert the ``values`` dictionary into the format of :meth:`write`.
docstring_tokens: Convert the values dictionary into the format of : meth : write .
function: def _convert_to_write(self, values):
          """ Convert the ``values`` dictionary into the format of :meth:`write`. """
          fields = self._fields
          result = {}
          for name, value in values.items():
              if name in fields:
                  field = fields[name]
                  value = field.convert_to_write(value, self)
                  if not isinstance(value, NewId):
                      result[name] = value
          return result
function_tokens: def _convert_to_write ( self , values ) : fields = self . _fields result = { } for name , value in values . items ( ) : if name in fields : field = fields [ name ] value = field . convert_to_write ( value , self ) if not isinstance ( value , NewId ) : result [ name ] = value return result