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