public static class Identifier.Serializer extends Object implements JsonDeserializer<Identifier>, JsonSerializer<Identifier>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
Identifier |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
JsonElement |
serialize(Identifier identifier,
Type type,
JsonSerializationContext jsonSerializationContext) |
public Identifier deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
deserialize
in interface JsonDeserializer<Identifier>
JsonParseException
public JsonElement serialize(Identifier identifier, Type type, JsonSerializationContext jsonSerializationContext)
serialize
in interface JsonSerializer<Identifier>