def _to_dict(self):
        """Return a json dictionary representing this model."""
        _dict = {}
        if hasattr(self, 'field') and self.field is not None:
            _dict['field'] = self.field
        if hasattr(self, 'value') and self.value is not None:
            _dict['value'] = self.value
        return _dict
def _to_dict ( self ) : _dict = { } if hasattr ( self , 'field' ) and self . field is not None : _dict [ 'field' ] = self . field if hasattr ( self , 'value' ) and self . value is not None : _dict [ 'value' ] = self . value return _dict
Return a json dictionary representing this model.