js/http_client/v1/src/model/V1EventConfusionMatrix.js
/**
     * Constructs a <code>V1EventConfusionMatrix</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/V1EventConfusionMatrix} obj Optional instance to populate.
     * @return {module:model/V1EventConfusionMatrix} The populated <code>V1EventConfusionMatrix</code> instance.
     */
Constructs a V1EventConfusionMatrix 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 {module:model/V1EventConfusionMatrix} obj Optional instance to populate.
Constructs a V1EventConfusionMatrix 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 { module : model / V1EventConfusionMatrix } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new V1EventConfusionMatrix();
            if (data.hasOwnProperty('x')) {
                obj['x'] = ApiClient.convertToType(data['x'], [Object]);
            }
            if (data.hasOwnProperty('y')) {
                obj['y'] = ApiClient.convertToType(data['y'], [Object]);
            }
            if (data.hasOwnProperty('z')) {
                obj['z'] = ApiClient.convertToType(data['z'], [Object]);
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new V1EventConfusionMatrix ( ) ; if ( data . hasOwnProperty ( 'x' ) ) { obj [ 'x' ] = ApiClient . convertToType ( data [ 'x' ] , [ Object ] ) ; } if ( data . hasOwnProperty ( 'y' ) ) { obj [ 'y' ] = ApiClient . convertToType ( data [ 'y' ] , [ Object ] ) ; } if ( data . hasOwnProperty ( 'z' ) ) { obj [ 'z' ] = ApiClient . convertToType ( data [ 'z' ] , [ Object ] ) ; } } return obj ; }
Constructs a <code>V1EventConfusionMatrix</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > V1EventConfusionMatrix< / code > from a plain JavaScript object optionally creating a new instance .