There was an error while loading. Please reload this page.
Specify a list of classes which extend this class, and optionally their "names". Used for handling inheritance (see @JsonTypeInfo)
This can also be used on a property/getter/setter to provide information about subtypes of the type of that particular field.
<? /** * @JsonSubTypes({@JsonSubTypes\Type("Foo"), @JsonSubTypes\Type("Bar")}) */ class Baz { } class Foo extends Baz { } class Bar extends Baz { }
Back to Annotations list