class StandardServerMapper implements ServerMapper<Server> {

    @Override
    public Server deserialize(Map<String, String> data) {
        return new Server(
                data.get("name"),
                Boolean.valueOf(data.get("enabled")),
                Integer.valueOf(data.get("onlinePlayers")),
                Integer.valueOf(data.get("maxPlayers"))
        );
    }

}