def map_challenge_set(x):
    """
    Map a SQLAlchemy ChallengeSet model object into a generic map.
    :param x: SQLAlchemy ChallengeSet model.
    :return: Generic map containing relevant details for REST API.
    """
    return {"id": x.id, "slug": x.slug, "name": x.name, "description": x.description}