Interface that defines standard API for converting types
to type identifiers and vice versa. Used by type resolvers
TypeDeserializer) for converting
between type and matching id; id is stored in JSON and needed for
creating instances of proper subtypes when deserializing values.
Method that will be called once before any type resolution calls;
used to initialize instance with configuration. This is necessary
since instances may be created via reflection, without ability to
call specific constructor to pass in configuration settings.
baseType - Base type for which this id resolver instance is
Alternative method used for determining type from combination of
value and type, using suggested type (that serializer provides)
and possibly value of that type. Most common implementation will
use suggested type as is.
Method that can be called to figure out type id to use for instances
of base type (declared type of property). This is usually only used
for fallback handling, for cases where real type information is not
available for some reason.