def to_dict(self, serialize=False):
        """
        This method returns the object as a Python dict. If serialize is passed, only those attributes
        that have been modified will be included in the result.
        :param serialize:
        :return:
        """
        if serialize:
            encode_method = json_encode_for_zendesk
        else:
            encode_method = json_encode_for_printing
        return json.loads(json.dumps(self._to_dict(serialize=serialize), default=encode_method))