def METHOD_NAME(self, db: Session, data: Dict[str, Any]) -> ApplicationConfig:  # type: ignore[override]
    """
    Updates the config record, merging contents of the particular JSON column that
    corresponds to the updated data.
    Given `data` dict should have either/both an `api_set` and/or `config_set` key at the top-level.
    Those keys will then point to `dict`s of data to update, i.e. merge, with the existing contents
    of the `api_set` or `config_set` columns, respectively.
    """
    if "api_set" in data:
        incoming_api_config = data["api_set"]
        if not isinstance(incoming_api_config, dict):
            raise ValueError("`api_set` column must be a dictionary")
        # update, i.e. merge, the `api_set` dict
        self.api_set = deep_update(self.api_set, incoming_api_config)
    if "config_set" in data:
        incoming_config_config = data["config_set"]
        if not isinstance(incoming_config_config, dict):
            raise ValueError("`config_set` column must be a dictionary")
        # update, i.e. merge, the `config_set` dict
        self.config_set = deep_update(self.config_set, incoming_config_config)
    self.save(db=db)
    return self