class WindowInfo {

  @JsonCreator
  public static WindowInfo of(
      @JsonProperty(value = "type", required = true) final WindowType type,
      @JsonProperty(value = "size") final Optional<Duration> size) {
    return new WindowInfo(type, size);
  }

  private  WindowInfo(final WindowType type, final Optional<Duration> size);

}