public class CHAPSecretAdaptor extends java.lang.Object implements com.solidfire.gson.JsonSerializer<CHAPSecret>, com.solidfire.gson.JsonDeserializer<CHAPSecret>
Constructor and Description |
---|
CHAPSecretAdaptor() |
Modifier and Type | Method and Description |
---|---|
CHAPSecret |
deserialize(com.solidfire.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.solidfire.gson.JsonDeserializationContext context) |
com.solidfire.gson.JsonElement |
serialize(CHAPSecret chapSecret,
java.lang.reflect.Type type,
com.solidfire.gson.JsonSerializationContext context) |
static java.lang.Class |
serializingClass()
Gets the Class that this adapter serializes.
|
public static java.lang.Class serializingClass()
public com.solidfire.gson.JsonElement serialize(CHAPSecret chapSecret, java.lang.reflect.Type type, com.solidfire.gson.JsonSerializationContext context)
serialize
in interface com.solidfire.gson.JsonSerializer<CHAPSecret>
public CHAPSecret deserialize(com.solidfire.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.solidfire.gson.JsonDeserializationContext context) throws com.solidfire.gson.JsonParseException
deserialize
in interface com.solidfire.gson.JsonDeserializer<CHAPSecret>
com.solidfire.gson.JsonParseException