@Override
public TypeDeserializer buildTypeDeserializer(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes) {
if (useForType(baseType)) {
if (_idType == JsonTypeInfo.Id.NONE) {
return null;
}
TypeIdResolver idRes = idResolver(config, baseType, subtypes, false, true);
switch (_includeAs) {
case WRAPPER_OBJECT:
return new CustomAsWrapperTypeDeserializer(baseType, idRes, _typeProperty, true, baseType);
}
}
return super.buildTypeDeserializer(config, baseType, subtypes);
}