class ServerEntityDataMapper {

  public Server transform(ServerEntity serverEntity) {
    if (serverEntity == null) {
      return null;
    }

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

  @Inject public  ServerEntityDataMapper();

}