{"size": 3581, "ext": "js", "max_stars_repo_path": "out/jira/src/model/IssueFieldOption.js", "max_stars_repo_name": "getkloudi/integration-wrapper-generator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "out/jira/src/model/IssueFieldOption.js", "max_issues_repo_name": "getkloudi/integration-wrapper-generator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "out/jira/src/model/IssueFieldOption.js", "max_forks_repo_name": "getkloudi/integration-wrapper-generator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.1047619048, "max_line_length": 321, "alphanum_fraction": 0.6665735828}
/**
 * The Jira Cloud platform REST API
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
 * Contact: ecosystem@atlassian.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 *
 */

import ApiClient from '../ApiClient';
import IssueFieldOptionConfiguration from './IssueFieldOptionConfiguration';

/**
 * The IssueFieldOption model module.
 * @module model/IssueFieldOption
 * @version 1.4.0
 */
class IssueFieldOption {
    /**
     * Constructs a new <code>IssueFieldOption</code>.
     * Details of the options for a select list issue field.
     * @alias module:model/IssueFieldOption
     * @param id {Number} The unique identifier for the option. This is only unique within the select field's set of options.
     * @param value {String} The option's name, which is displayed in Jira.
     */
    constructor(id, value) { 
        
        IssueFieldOption.initialize(this, id, value);
    }

    /**
     * Initializes the fields of this object.
     * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
     * Only for internal use.
     */
    static initialize(obj, id, value) { 
        obj['id'] = id;
        obj['value'] = value;
    }

    /**
     * Constructs a <code>IssueFieldOption</code> from a plain JavaScript object, optionally creating a new instance.
     * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
     * @param {Object} data The plain JavaScript object bearing properties of interest.
     * @param {module:model/IssueFieldOption} obj Optional instance to populate.
     * @return {module:model/IssueFieldOption} The populated <code>IssueFieldOption</code> instance.
     */
    static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new IssueFieldOption();

            if (data.hasOwnProperty('config')) {
                obj['config'] = IssueFieldOptionConfiguration.constructFromObject(data['config']);
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'Number');
            }
            if (data.hasOwnProperty('properties')) {
                obj['properties'] = ApiClient.convertToType(data['properties'], {'String': Object});
            }
            if (data.hasOwnProperty('value')) {
                obj['value'] = ApiClient.convertToType(data['value'], 'String');
            }
        }
        return obj;
    }


}

/**
 * @member {module:model/IssueFieldOptionConfiguration} config
 */
IssueFieldOption.prototype['config'] = undefined;

/**
 * The unique identifier for the option. This is only unique within the select field's set of options.
 * @member {Number} id
 */
IssueFieldOption.prototype['id'] = undefined;

/**
 * The properties of the object, as arbitrary key-value pairs. These properties can be searched using JQL, if the extractions (see [Issue Field Option Property Index](https://developer.atlassian.com/cloud/jira/platform/modules/issue-field-option-property-index/)) are defined in the descriptor for the issue field module.
 * @member {Object.<String, Object>} properties
 */
IssueFieldOption.prototype['properties'] = undefined;

/**
 * The option's name, which is displayed in Jira.
 * @member {String} value
 */
IssueFieldOption.prototype['value'] = undefined;






export default IssueFieldOption;

