This method is invoked during deserialization to check if the data should be deserialized as the specific type.
An object to inspect
true
if the json matched the discriminator condition.
Optional
storeIf available this method is invoked during serialization and is meant to add discriminator information to the result json.
The result of the deserialization
Define an object exposing a couple of methods that are used to discriminate between subschema.