Package com.google.api.client.json
Annotation Type JsonPolymorphicTypeMap
Beta
Declares that the data type enclosing this field is polymorphic, and that the value of this field in a heterogeneous JSON schema will determine what type the data should be parsed into.
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()
.
- Since:
- 1.16
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Declares a mapping between a key value and a referenced class. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe list of mappings from key value to a referencedClass
.
-
Element Details
-
typeDefinitions
JsonPolymorphicTypeMap.TypeDef[] typeDefinitionsThe list of mappings from key value to a referencedClass
.
-