def METHOD_NAME(self):
    return {
        "game_id": self.game_id,
        "rating_type": self.rating_type
        if self.rating_type is not None
        else "None",
        "map_id": self.map_id,
        "featured_mod": self.game_mode,
        "sim_mod_ids": self.mods,
        "commander_kills": self.commander_kills,
        "validity": self.validity.name,
        "teams": [
            {
                "outcome": team_summary.outcome.name,
                "player_ids": list(team_summary.player_ids),
                "army_results": [
                    result._asdict()
                    for result in sorted(
                        team_summary.army_results,
                        key=lambda x: x.player_id
                    )
                ],
            }
            for team_summary in self.team_summaries
        ],
    }