def dump(self, ignore_error=True):
    'Return dictionary of all attributes\n\n        Example:\n            >>> import json\n            >>> _ = cmds.file(new=True, force=True)\n            >>> node = createNode("choice")\n            >>> dump = node.dump()\n            >>> isinstance(dump, dict)\n            True\n            >>> dump["choice1.caching"]\n            False\n\n        '
    attrs = {}
    count = self._fn.attributeCount()
    for index in range(count):
        obj = self._fn.attribute(index)
        plug = self._fn.findPlug(obj, False)
        try:
            value = Plug(self, plug).read()
        except (RuntimeError, TypeError):
            value = None
            if (not ignore_error):
                raise
        attrs[plug.name()] = value
    return attrs
Return dictionary of all attributes

Example:
    >>> import json
    >>> _ = cmds.file(new=True, force=True)
    >>> node = createNode("choice")
    >>> dump = node.dump()
    >>> isinstance(dump, dict)
    True
    >>> dump["choice1.caching"]
    False
def dump(self, ignore_error=True):
    'Return dictionary of all attributes\n\n        Example:\n            >>> import json\n            >>> _ = cmds.file(new=True, force=True)\n            >>> node = createNode("choice")\n            >>> dump = node.dump()\n            >>> isinstance(dump, dict)\n            True\n            >>> dump["choice1.caching"]\n            False\n\n        '
    attrs = {}
    count = self._fn.attributeCount()
    for index in range(count):
        obj = self._fn.attribute(index)
        plug = self._fn.findPlug(obj, False)
        try:
            value = Plug(self, plug).read()
        except (RuntimeError, TypeError):
            value = None
            if (not ignore_error):
                raise
        attrs[plug.name()] = value
    return attrs