old_contents: from nba_data.data.box_score import BoxScore
  from nba_data.deserializers.traditional_player_box_score_deserializer import TraditionalBoxScorePlayerStatsDeserializer
  from nba_data.deserializers.traditional_team_box_score_deserializer import TraditionalBoxScoreTeamStatsDeserializer
  
  
  class TraditionalBoxScoreDeserializer:
  
      def __init__(self):
          pass
  
      @staticmethod
      def deserialize_traditional_box_score(traditional_box_score_json):
          game_id = traditional_box_score_json["parameters"]["GameID"]
          box_score_player_stats = TraditionalBoxScorePlayerStatsDeserializer.deserialize_traditional_box_score_player_stats(traditional_box_score_json["resultSets"][0])
          box_score_team_stats = TraditionalBoxScoreTeamStatsDeserializer.deserialize_traditional_box_score_team_stats(traditional_box_score_json["resultSets"][1])
          return BoxScore(game_id=str(game_id), player_box_scores=box_score_player_stats, team_box_scores=box_score_team_stats)
new_contents: from nba_data.data.box_score import BoxScore
  from nba_data.deserializers.traditional_player_box_score_deserializer import TraditionalBoxScorePlayerStatsDeserializer
  from nba_data.deserializers.traditional_team_box_score_deserializer import TraditionalBoxScoreTeamStatsDeserializer
  
  
  class TraditionalBoxScoreDeserializer:
      parameters_field_name = 'parameters'
      game_id_field_name = 'GameID'
      result_sets_field_name = 'resultSets'
      player_box_scores_index = 0
      team_box_scores_index = 1
  
      def __init__(self):
          pass
  
      @staticmethod
      def deserialize(data):
          if TraditionalBoxScoreDeserializer.parameters_field_name not in data:
              raise ValueError('Unable to parse parameters field for %s', data)
  
          parameters = data[TraditionalBoxScoreDeserializer.parameters_field_name]
  
          if TraditionalBoxScoreDeserializer.game_id_field_name not in data:
              raise ValueError('Unable to parse game id field for %s', data)
  
          game_id = parameters[TraditionalBoxScoreDeserializer.game_id_field_name]
          player_box_scores = TraditionalBoxScoreDeserializer.parse_player_box_scores(data=data)
          team_box_scores = TraditionalBoxScoreDeserializer.parse_team_box_scores(data=data)
  
          return BoxScore(game_id=game_id, player_box_scores=player_box_scores, team_box_scores=team_box_scores)
  
      @staticmethod
      def parse_player_box_scores(data):
          if TraditionalBoxScoreDeserializer.result_sets_field_name not in data:
              raise ValueError('Unable to parse result sets field for %s', data)
  
          result_sets = data[TraditionalBoxScoreDeserializer.result_sets_field_name]
  
          if len(result_sets) < 1:
              raise ValueError('Expected at least one field for %s', data)
  
          return TraditionalBoxScorePlayerStatsDeserializer.deserialize_traditional_box_score_player_stats(traditional_box_score_player_stats_json=result_sets[TraditionalBoxScoreDeserializer.player_box_scores_index])
  
      @staticmethod
      def parse_team_box_scores(data):
          if TraditionalBoxScoreDeserializer.result_sets_field_name not in data:
              raise ValueError('Unable to parse result sets field for %s', data)
  
          result_sets = data[TraditionalBoxScoreDeserializer.result_sets_field_name]
  
          if len(result_sets) < 2:
              raise ValueError('Expected at least two fields for %s', data)
  
          return TraditionalBoxScoreTeamStatsDeserializer.deserialize_traditional_box_score_team_stats(traditional_box_score_player_stats_json=result_sets[TraditionalBoxScoreDeserializer.team_box_scores_index])
subject: update traditional box score deserialization