def dict2list_param(param):
    """Convert dictionary to list and add name by key."""
    if isinstance(param, dict):
        out = []
        for key in param:
            item = param[key]
            item["name"] = key
            out.append(item)
        return out
    return param