def serialize(self, value, **kwargs):
        """ pre-serialize value """
        if self._serialize is not None:
            return self._serialize(value, **kwargs)
        else:
            return value