

@classmethod
def from_dict(cls, argument_dict):
    '\n        Created a InputArgument instance from a dictionary.\n\n        :param argument_dict: The dictionary defining the argument\n        :type argument_dict: dict\n\n        :return: The created InputArgument instance\n        :rtype: InputArgument\n        '
    if (len(argument_dict) > 1):
        name = argument_dict['name']
    else:
        name = list(argument_dict.keys())[0]
        argument_dict = argument_dict[name]
    description = argument_dict.get('description')
    default = argument_dict.get('default')
    required = default.get('required', False)
    mode = (cls.REQUIRED if required else cls.OPTIONAL)
    if argument_dict.get('list', False):
        mode |= cls.IS_LIST
    validator = argument_dict.get('validator')
    return cls(name, mode, description, default, validator=validator)

dataset/ETHPy150Open sdispater/cleo/cleo/inputs/input_argument.py InputArgument.from_dict/VarMisuse@83/189 `argument_dict`->`default`