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