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