def _dict_to_obj(self, d):
    if JsonEncoder.TYPE_ID not in d:
      return d

    obj_type = d.pop(JsonEncoder.TYPE_ID)
    if obj_type in _TYPE_IDS:
      decoder = JSON_DEFAULTS[_TYPE_IDS[obj_type]][1]
      return decoder(d)
    else:
      raise TypeError("Invalid type %s.", obj_type)
Decrement counters with the photo stats.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/model.py/JsonDecoder._dict_to_obj--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/accounting.py/Accounting.DecrementFromPhotos