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