public JsonObjectMapper() {
    registerModule(module);

    configure(MapperFeature.REQUIRE_SETTERS_FOR_GETTERS, true);
    configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
    enableDefaultTyping(DefaultTyping.NON_FINAL, As.WRAPPER_OBJECT);

    typer = new ClassAliasTypeResolverBuilder(DefaultTyping.NON_FINAL);
    setDefaultTyping(typer.inclusion(As.WRAPPER_OBJECT));
  }
 /**
  * Registers mappings between classes and aliases (ids).
  *
  * @param classToId
  * @since 3.0.0
  */
 public void setClassToId(final Map<Class<?>, String> classToId) {
   typer.setClassToId(classToId);
 }