docs: function(key, value, getTypeId, getConstructor) {
              var typeId = getTypeId(value);
              if (typeId) {
                  var ctor = getConstructor(typeId);
                  if (ctor) {
                      if (ctor.fromJSON) {
                          return ctor.fromJSON(value);
                      }
  
                      return new ctor(value);
                  }
              }
  
              return value;
          }