def _convert_item(self, obj):
if isinstance(obj, dict) and not isinstance(obj, DotDict):<EOL><INDENT>obj = DotDict(obj)<EOL><DEDENT>elif isinstance(obj, list):<EOL><INDENT>for i, item in enumerate(obj):<EOL><INDENT>if isinstance(item, dict) and not isinstance(item, DotDict):<EOL><INDENT>obj[i] = DotDict(item)<EOL><DEDENT><DEDENT><DEDENT>return obj<EOL>
Convert obj into a DotDict, or list of DotDict.

Directly nested lists aren't supported.
Returns the result