Created example with JsonTypeInfo working with outer class type