src/rest-client/src/anchor/model/OperatorSetting.js
/**
     * Constructs a <code>OperatorSetting</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 {OperatorSetting} obj Optional instance to populate.
     * @return {OperatorSetting} The populated <code>OperatorSetting</code> instance.
     * @memberof OperatorSetting
     */
Constructs a OperatorSetting from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
@param {Object} data The plain JavaScript object bearing properties of interest.
@param {OperatorSetting} obj Optional instance to populate.
Constructs a OperatorSetting from a plain JavaScript object optionally creating a new instance . Copies all relevant properties from data to obj if supplied or a new instance if not . @param { Object } data The plain JavaScript object bearing properties of interest . @param { OperatorSetting } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new OperatorSetting()
            if (data.hasOwnProperty('feePayer')) {
                obj.feePayer = ApiClient.convertToType(data.feePayer, 'String')
            }
            if (data.hasOwnProperty('useGlobalFeePayer')) {
                obj.useGlobalFeePayer = ApiClient.convertToType(data.useGlobalFeePayer, 'Boolean')
            }
            if (data.hasOwnProperty('useOperator')) {
                obj.useOperator = ApiClient.convertToType(data.useOperator, 'Boolean')
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new OperatorSetting ( ) if ( data . hasOwnProperty ( 'feePayer' ) ) { obj . feePayer = ApiClient . convertToType ( data . feePayer , 'String' ) } if ( data . hasOwnProperty ( 'useGlobalFeePayer' ) ) { obj . useGlobalFeePayer = ApiClient . convertToType ( data . useGlobalFeePayer , 'Boolean' ) } if ( data . hasOwnProperty ( 'useOperator' ) ) { obj . useOperator = ApiClient . convertToType ( data . useOperator , 'Boolean' ) } } return obj }
Constructs a <code>OperatorSetting</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > OperatorSetting< / code > from a plain JavaScript object optionally creating a new instance .