Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type")
- @JsonSubTypes(value = {
- @JsonSubTypes.Type(value = A.class, name = "type_a"),
- @JsonSubTypes.Type(value = B.class, name = "type_b")
- })
- @JsonInclude(JsonInclude.Include.NON_NULL)
Advertisement
Add Comment
Please, Sign In to add comment