@Target(FIELD) @Retention(RUNTIME) @Beta public @interface JsonPolymorphicTypeMap
Beta
A data structure must have no more than one field with this annotation present. The annotated
field's type must be considered "primitive" by Data.isPrimitive(Type)
. The field's value
will be compared against the JsonPolymorphicTypeMap.TypeDef.key()
using Object.toString()
.
Modifier and Type | Required Element | Description |
---|---|---|
JsonPolymorphicTypeMap.TypeDef[] |
typeDefinitions |
The list of mappings from key value to a referenced
Class . |
JsonPolymorphicTypeMap.TypeDef[] typeDefinitions
Class
.Copyright © 2011–2019 Google. All rights reserved.