TFrom - The type being serializedTTo - The type being serialized topublic interface Serializer<TFrom,TTo>
A serializer is constructed using one of the following construtor signatures (sorted by precedence):
java.lang.reflect.Type. This is the type being
serialized.java.lang.Class. This is the class being
serialized.