/**
 * Represents a option.
 */
export class OptionElement {
    /** The unique identifier for the option. */
    label;
    /** The display value for the option. */
    value;
    /**
     * Creates a new instance of the OptionElement class.
     * @param {string} label - The unique identifier for the option.
     * @param {string} value - The display value for the option.
     */
    constructor(label, value) {
        this.label = label || "";
        this.value = value || "";
    }
    /**
     * Returns the unique identifier for the option.
     * @returns {string} The unique identifier for the option.
     */
    getLabel() {
        return this.label;
    }
    /**
     * Returns the display value for the option.
     * @returns {string} The display value for the option.
     */
    getValue() {
        return this.value;
    }
    static fromJSON(json) {
        return new OptionElement(json.label, json.value);
    }
}
//# sourceMappingURL=OptionElement.js.map