public class SFCustomSafeEnumParser extends java.lang.Object implements com.google.gson.JsonDeserializer<SFSafeEnum>, com.google.gson.JsonSerializer<SFSafeEnum>
| Constructor and Description |
|---|
SFCustomSafeEnumParser() |
| Modifier and Type | Method and Description |
|---|---|
SFSafeEnum |
deserialize(com.google.gson.JsonElement jsonElement,
java.lang.reflect.Type typeOfObject,
com.google.gson.JsonDeserializationContext desContext) |
com.google.gson.JsonElement |
serialize(SFSafeEnum sfSafeEnum,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
public SFSafeEnum deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type typeOfObject, com.google.gson.JsonDeserializationContext desContext) throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<SFSafeEnum>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(SFSafeEnum sfSafeEnum, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
serialize in interface com.google.gson.JsonSerializer<SFSafeEnum>