@staticmethod
def _TransformResponseDict(resp_dict):
    """Transform the response from stats.nba.com
            The response from stats.nba.com is a JSON object. However,
            for efficiency the fields are not encoded as key-value pairs
            but rather separated as header and rowSets, which is not
            convenient for querying the attributes of the resultSets.
        """
    from .utils import convert_resultset
    resultSets = map(convert_resultset, resp_dict['resultSets'])
    resp_dict['resultSets'] = {}
    for name, data in resultSets:
        resp_dict['resultSets'][name] = data
    return resp_dict
