@Test void pojo2Record(final JsonBuilderFactory jsonBuilderFactory, final JsonProvider jsonProvider, final RecordBuilderFactory recordBuilderFactory, final RecordConverters converter, final Jsonb jsonb) throws Exception { final Wrapper record = new Wrapper(); record.value = "hey"; final Record json = Record.class .cast(converter .toType(new RecordConverters.MappingMetaRegistry(), record, Record.class, () -> jsonBuilderFactory, () -> jsonProvider, () -> jsonb, () -> recordBuilderFactory)); assertEquals("hey", json.getString("value")); }
public Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType, final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier, final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider) { return toType(registry, data, parameterType, factorySupplier, providerSupplier, jsonbProvider, recordBuilderProvider, Collections.emptyMap()); }
RecordConverters implements Serializable { public Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType, final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier, final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider) { return toType(registry, data, parameterType, factorySupplier, providerSupplier, jsonbProvider, recordBuilderProvider, Collections.emptyMap()); } }
RecordConverters implements Serializable { public Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType, final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier, final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider) { return toType(registry, data, parameterType, factorySupplier, providerSupplier, jsonbProvider, recordBuilderProvider, Collections.emptyMap()); }  }
RecordConverters implements Serializable { public Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType, final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier, final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider) { return toType(registry, data, parameterType, factorySupplier, providerSupplier, jsonbProvider, recordBuilderProvider, Collections.emptyMap()); }  T mapNumber(final Class<T> expected, final Number from); Record toRecord(final MappingMetaRegistry registry, final T data, final Supplier<Jsonb> jsonbProvider,
            final Supplier<RecordBuilderFactory> recordBuilderProvider); static Schema toSchema(final RecordBuilderFactory factory, final Object next); Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType,
            final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier,
            final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider); Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType,
            final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier,
            final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider,
            final java.util.Map<String, String> metadata); T coerce(final Class<T> expectedType, final Object value, final String name); }
RecordConverters implements Serializable { public Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType, final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier, final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider) { return toType(registry, data, parameterType, factorySupplier, providerSupplier, jsonbProvider, recordBuilderProvider, Collections.emptyMap()); }  T mapNumber(final Class<T> expected, final Number from); Record toRecord(final MappingMetaRegistry registry, final T data, final Supplier<Jsonb> jsonbProvider,
            final Supplier<RecordBuilderFactory> recordBuilderProvider); static Schema toSchema(final RecordBuilderFactory factory, final Object next); Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType,
            final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier,
            final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider); Object toType(final MappingMetaRegistry registry, final Object data, final Class<?> parameterType,
            final Supplier<JsonBuilderFactory> factorySupplier, final Supplier<JsonProvider> providerSupplier,
            final Supplier<Jsonb> jsonbProvider, final Supplier<RecordBuilderFactory> recordBuilderProvider,
            final java.util.Map<String, String> metadata); T coerce(final Class<T> expectedType, final Object value, final String name);  }