def to_dict(self):
result = {}<EOL>stack = collections.deque()<EOL>stack.append(<EOL>(<EOL>result,<EOL>{_to_camel_case(k): v for k, v in self.__dict__.iteritems()},<EOL>)<EOL>)<EOL>while stack:<EOL><INDENT>dest, source = stack.pop()<EOL>if isinstance(dest, dict):<EOL><INDENT>self._process_dict(dest, source, stack)<EOL><DEDENT>else:<EOL><INDENT>self._process_list(dest, source, stack)<EOL><DEDENT><DEDENT>return result<EOL>
Return the schema as a `dict`, ready to be serialized by
        :mod:`json`.