public class InterfaceAdapter extends Object implements com.google.gson.JsonSerializer, com.google.gson.JsonDeserializer
| Constructor and Description |
|---|
InterfaceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
Class |
getObjectClass(String className)
Helper method to get the className of the object to be deserialized
|
com.google.gson.JsonElement |
serialize(Object jsonElement,
Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
public Object deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializercom.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(Object jsonElement, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
serialize in interface com.google.gson.JsonSerializerCopyright © 2025. All rights reserved.