@classmethod
    def from_json_dict(cls, dic, resource_root, member_cls=None):
        if not member_cls:
            member_cls = cls._MEMBER_CLASS
        attr = Attr(atype=member_cls)
        items = []
        if dic in ApiList.LIST_KEY:
            items = [attr.from_json(resource_root, x)
                     for x in dic[ApiList.LIST_KEY]]
        ret = cls(items)
        # If the class declares custom attributes, populate them based on the
        # input dict. The check avoids extra overhead for the common case,
        # where we just have a plain list. _set_attrs() also does not
        # understand the "items" attribute, so it can't be in the input data.
        if cls._ATTRIBUTES:
            if ApiList.LIST_KEY in dic:
                dic = copy.copy(dic)
                del dic[ApiList.LIST_KEY]
            ret._set_attrs(dic, allow_ro=True)
        return ret
dataset/ETHPy150Open openstack/sahara/sahara/plugins/cdh/client/types.py/ApiList.from_json_dict/swapped operands of `in`