def to_dict(self, serialize=False):
if serialize:<EOL><INDENT>encode_method = json_encode_for_zendesk<EOL><DEDENT>else:<EOL><INDENT>encode_method = json_encode_for_printing<EOL><DEDENT>return json.loads(json.dumps(self._to_dict(serialize=serialize), default=encode_method))<EOL>
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: