- Type Parameters:
T
- Type to deserialize
- All Implemented Interfaces:
- org.nd4j.shade.jackson.databind.deser.NullValueProvider
- Direct Known Subclasses:
- LegacyIActivationDeserializer, LegacyILossFunctionDeserializer
public abstract class BaseLegacyDeserializer<T>
extends org.nd4j.shade.jackson.databind.JsonDeserializer<T>
A base deserialization class used to handle deserializing of a specific class given changes from subtype wrapper
format to class field format.
That is: from...
{@code @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)}
{@code @JsonSubTypes(value = {@JsonSubTypes.Type(value = LossBinaryXENT.class, name = "BinaryXENT"),}...}
to
{@code @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")}
- Author:
- Alex Black