def list2dict_param(param):
    """Convert list to dictionary for quicker find."""
    if isinstance(param, list):
        out = {}
        for p in param:
            out[p["name"]] = p
        return out
    return param