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