public static class GsonUtility.SiteInfoGsonTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<SiteInfo>, com.google.gson.JsonDeserializer<SiteInfo>
Constructor and Description |
---|
SiteInfoGsonTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
SiteInfo |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(SiteInfo site,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public com.google.gson.JsonElement serialize(SiteInfo site, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<SiteInfo>
public SiteInfo deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<SiteInfo>
com.google.gson.JsonParseException