def METHOD_NAME(achievement: UserAchievement) -> dict:
    return {
        "achievement_id": str(achievement.achievement_id),
        "achievement_code": achievement.achievement.code,
        "achievement_name": achievement.achievement.name,
        "achievement_description": achievement.achievement.description,
        "created_at": achievement.created_at.isoformat() if achievement.created_at else None,
    }