class ServerModelDataMapper {

  public ServerModel transform(Server server) {
    if (server == null) {
      throw new IllegalArgumentException("Cannot transform a null Server object.");
    }

    return ServerModel.builder()
        .ssid(server.ssid())
        .ip(server.ip())
        .hostname(server.hostname())
        .os(server.os())
        .version(server.version())
        .seed(server.seed())
        .worldName(server.worldName())
        .playerName(server.playerName())
        .encodedWorldImage(server.encodedWorldImage())
        .build();
  }

  @Inject public  ServerModelDataMapper();

}