def as_game(self): from game.models import Game return Game.initialize_from_dict(self.serialized_state)