Builder
A builder for a HeterogeneousItemConverter which maps objects to type names according to their class. Obtain an instance via the HeterogeneousItemConverter(typeAttribute) { ... } factory function.
Registrations are evaluated in the order they were made and the first one which matches an object wins, regardless of whether it was registered via exactType or instanceOf. Consequently, register more specific types before less specific ones (e.g., exactType<Car> before instanceOf<Car>, and instanceOf<Car> before instanceOf<Vehicle>). Registrations which are made unreachable by an earlier registration of the same class are rejected. Registrations made unreachable by an earlier registration of a supertype cannot be detected.
Type Parameters
The common type ancestor for all types handled by the resulting converter