js/http_client/v1/src/model/V1Init.js
/**
     * Constructs a <code>V1Init</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/V1Init} obj Optional instance to populate.
     * @return {module:model/V1Init} The populated <code>V1Init</code> instance.
     */
Constructs a V1Init 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/V1Init} obj Optional instance to populate.
Constructs a V1Init 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 / V1Init } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new V1Init();
            if (data.hasOwnProperty('artifacts')) {
                obj['artifacts'] = V1ArtifactsType.constructFromObject(data['artifacts']);
            }
            if (data.hasOwnProperty('paths')) {
                obj['paths'] = ApiClient.convertToType(data['paths'], [Object]);
            }
            if (data.hasOwnProperty('git')) {
                obj['git'] = V1GitType.constructFromObject(data['git']);
            }
            if (data.hasOwnProperty('dockerfile')) {
                obj['dockerfile'] = V1DockerfileType.constructFromObject(data['dockerfile']);
            }
            if (data.hasOwnProperty('file')) {
                obj['file'] = V1FileType.constructFromObject(data['file']);
            }
            if (data.hasOwnProperty('tensorboard')) {
                obj['tensorboard'] = V1TensorboardType.constructFromObject(data['tensorboard']);
            }
            if (data.hasOwnProperty('lineageRef')) {
                obj['lineageRef'] = ApiClient.convertToType(data['lineageRef'], 'String');
            }
            if (data.hasOwnProperty('artifactRef')) {
                obj['artifactRef'] = ApiClient.convertToType(data['artifactRef'], 'String');
            }
            if (data.hasOwnProperty('modelRef')) {
                obj['modelRef'] = ApiClient.convertToType(data['modelRef'], 'String');
            }
            if (data.hasOwnProperty('connection')) {
                obj['connection'] = ApiClient.convertToType(data['connection'], 'String');
            }
            if (data.hasOwnProperty('path')) {
                obj['path'] = ApiClient.convertToType(data['path'], 'String');
            }
            if (data.hasOwnProperty('container')) {
                obj['container'] = ApiClient.convertToType(data['container'], Object);
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new V1Init ( ) ; if ( data . hasOwnProperty ( 'artifacts' ) ) { obj [ 'artifacts' ] = V1ArtifactsType . constructFromObject ( data [ 'artifacts' ] ) ; } if ( data . hasOwnProperty ( 'paths' ) ) { obj [ 'paths' ] = ApiClient . convertToType ( data [ 'paths' ] , [ Object ] ) ; } if ( data . hasOwnProperty ( 'git' ) ) { obj [ 'git' ] = V1GitType . constructFromObject ( data [ 'git' ] ) ; } if ( data . hasOwnProperty ( 'dockerfile' ) ) { obj [ 'dockerfile' ] = V1DockerfileType . constructFromObject ( data [ 'dockerfile' ] ) ; } if ( data . hasOwnProperty ( 'file' ) ) { obj [ 'file' ] = V1FileType . constructFromObject ( data [ 'file' ] ) ; } if ( data . hasOwnProperty ( 'tensorboard' ) ) { obj [ 'tensorboard' ] = V1TensorboardType . constructFromObject ( data [ 'tensorboard' ] ) ; } if ( data . hasOwnProperty ( 'lineageRef' ) ) { obj [ 'lineageRef' ] = ApiClient . convertToType ( data [ 'lineageRef' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'artifactRef' ) ) { obj [ 'artifactRef' ] = ApiClient . convertToType ( data [ 'artifactRef' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'modelRef' ) ) { obj [ 'modelRef' ] = ApiClient . convertToType ( data [ 'modelRef' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'connection' ) ) { obj [ 'connection' ] = ApiClient . convertToType ( data [ 'connection' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'path' ) ) { obj [ 'path' ] = ApiClient . convertToType ( data [ 'path' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'container' ) ) { obj [ 'container' ] = ApiClient . convertToType ( data [ 'container' ] , Object ) ; } } return obj ; }
Constructs a <code>V1Init</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > V1Init< / code > from a plain JavaScript object optionally creating a new instance .