def METHOD_NAME(config, data):
    if "notificationsMinSeverity" in data:
        config["notifications_min_severity"] = \
            NotificationMinimumSeverity[data["notificationsMinSeverity"]]
    if "notificationsDisabledCategories" in data:
        config["notifications_disabled_categories"] = \
            [NotificationDisabledCategory[c]
             for c in data["notificationsDisabledCategories"]]