class ImageToJsonTranslator {

  @VisibleForTesting
  @Nullable
  static Map<String, Map<?, ?>> portSetToMap(@Nullable Set<Port> exposedPorts) {
    return setToMap(exposedPorts, port -> port.getPort() + "/" + port.getProtocol());
  }

  public  ImageToJsonTranslator(Image image);

}