Package io.jmix.dashboards.converter
Class InheritanceAdapter
java.lang.Object
io.jmix.dashboards.converter.InheritanceAdapter
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer,- com.google.gson.JsonSerializer
public class InheritanceAdapter
extends Object
implements com.google.gson.JsonSerializer, com.google.gson.JsonDeserializer
Supports JSON serialization/deserialization for inherited classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) protected ClassgetObjectClass(String className) com.google.gson.JsonElement
- 
Field Details- 
CLASSNAME- See Also:
 
- 
DATA- See Also:
 
 
- 
- 
Constructor Details- 
InheritanceAdapterpublic InheritanceAdapter()
 
- 
- 
Method Details- 
deserializepublic Object deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
- deserializein interface- com.google.gson.JsonDeserializer
- Throws:
- com.google.gson.JsonParseException
 
- 
serializepublic com.google.gson.JsonElement serialize(Object src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
- serializein interface- com.google.gson.JsonSerializer
 
- 
getObjectClass
 
-