static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new UploadAttachmentOptions();

            if (data.hasOwnProperty('base64Contents')) {
                obj['base64Contents'] = ApiClient.convertToType(data['base64Contents'], 'String');
            }
            if (data.hasOwnProperty('contentType')) {
                obj['contentType'] = ApiClient.convertToType(data['contentType'], 'String');
            }
            if (data.hasOwnProperty('filename')) {
                obj['filename'] = ApiClient.convertToType(data['filename'], 'String');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>UploadAttachmentOptions</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/UploadAttachmentOptions} obj Optional instance to populate.
     * @return {module:model/UploadAttachmentOptions} The populated <code>UploadAttachmentOptions</code> instance.
     */
Constructs a UploadAttachmentOptions 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/UploadAttachmentOptions} obj Optional instance to populate.
Constructs a UploadAttachmentOptions 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 / UploadAttachmentOptions } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new UploadAttachmentOptions();
            if (data.hasOwnProperty('base64Contents')) {
                obj['base64Contents'] = ApiClient.convertToType(data['base64Contents'], 'String');
            }
            if (data.hasOwnProperty('contentType')) {
                obj['contentType'] = ApiClient.convertToType(data['contentType'], 'String');
            }
            if (data.hasOwnProperty('filename')) {
                obj['filename'] = ApiClient.convertToType(data['filename'], 'String');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new UploadAttachmentOptions ( ) ; if ( data . hasOwnProperty ( 'base64Contents' ) ) { obj [ 'base64Contents' ] = ApiClient . convertToType ( data [ 'base64Contents' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'contentType' ) ) { obj [ 'contentType' ] = ApiClient . convertToType ( data [ 'contentType' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'filename' ) ) { obj [ 'filename' ] = ApiClient . convertToType ( data [ 'filename' ] , 'String' ) ; } } return obj ; }
Constructs a <code>UploadAttachmentOptions</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > UploadAttachmentOptions< / code > from a plain JavaScript object optionally creating a new instance .