/** Converts {@link ServerConfig} to {@link ServerConfigDto}. */ public static ServerConfigDto asDto(ServerConfig serverConf) { return newDto(ServerConfigDto.class) .withPort(serverConf.getPort()) .withProtocol(serverConf.getProtocol()) .withPath(serverConf.getPath()) .withAttributes(serverConf.getAttributes()); }
/** Converts {@link ServerConfig} to {@link ServerConfigDto}. */ public static ServerConfigDto asDto(ServerConfig serverConf) { return newDto(ServerConfigDto.class) .withPort(serverConf.getPort()) .withProtocol(serverConf.getProtocol()) .withPath(serverConf.getPath()) .withAttributes(serverConf.getAttributes()); }