Serialize to a dictionary.

def diff(self, diff):
        """ Serialize to a dictionary. """
        if diff is None:
            return None
        return dict(
            toVol=diff.toUUID,
            fromVol=diff.fromUUID,
            size=diff.size,
            sizeIsEstimated=diff.sizeIsEstimated,
        )