001package com.box.sdk; 002 003import com.box.sdk.internal.utils.JsonUtils; 004import com.eclipsesource.json.JsonObject; 005 006public class BoxAIExtractFieldOption extends BoxJSONObject { 007 /** A unique identifier for the option. */ 008 private final String key; 009 010 /** 011 * Constructs a BoxAIExtractFieldOption object with a given key. 012 * 013 * @param key the key of the field option. 014 */ 015 public BoxAIExtractFieldOption(String key) { 016 this.key = key; 017 } 018 019 public JsonObject getJSONObject() { 020 JsonObject jsonObject = new JsonObject(); 021 JsonUtils.addIfNotNull(jsonObject, "key", this.key); 022 return jsonObject; 023 } 024}