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

            if (data.hasOwnProperty('count')) {
                obj['count'] = ApiClient.convertToType(data['count'], 'Number');
            }
            if (data.hasOwnProperty('countType')) {
                obj['countType'] = ApiClient.convertToType(data['countType'], 'String');
            }
            if (data.hasOwnProperty('inboxId')) {
                obj['inboxId'] = ApiClient.convertToType(data['inboxId'], 'String');
            }
            if (data.hasOwnProperty('matches')) {
                obj['matches'] = ApiClient.convertToType(data['matches'], [MatchOption]);
            }
            if (data.hasOwnProperty('sortDirection')) {
                obj['sortDirection'] = ApiClient.convertToType(data['sortDirection'], 'String');
            }
            if (data.hasOwnProperty('timeout')) {
                obj['timeout'] = ApiClient.convertToType(data['timeout'], 'Number');
            }
            if (data.hasOwnProperty('unreadOnly')) {
                obj['unreadOnly'] = ApiClient.convertToType(data['unreadOnly'], 'Boolean');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>WaitForConditions</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/WaitForConditions} obj Optional instance to populate.
     * @return {module:model/WaitForConditions} The populated <code>WaitForConditions</code> instance.
     */
Constructs a WaitForConditions 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/WaitForConditions} obj Optional instance to populate.
Constructs a WaitForConditions 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 / WaitForConditions } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new WaitForConditions();
            if (data.hasOwnProperty('count')) {
                obj['count'] = ApiClient.convertToType(data['count'], 'Number');
            }
            if (data.hasOwnProperty('countType')) {
                obj['countType'] = ApiClient.convertToType(data['countType'], 'String');
            }
            if (data.hasOwnProperty('inboxId')) {
                obj['inboxId'] = ApiClient.convertToType(data['inboxId'], 'String');
            }
            if (data.hasOwnProperty('matches')) {
                obj['matches'] = ApiClient.convertToType(data['matches'], [MatchOption]);
            }
            if (data.hasOwnProperty('sortDirection')) {
                obj['sortDirection'] = ApiClient.convertToType(data['sortDirection'], 'String');
            }
            if (data.hasOwnProperty('timeout')) {
                obj['timeout'] = ApiClient.convertToType(data['timeout'], 'Number');
            }
            if (data.hasOwnProperty('unreadOnly')) {
                obj['unreadOnly'] = ApiClient.convertToType(data['unreadOnly'], 'Boolean');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new WaitForConditions ( ) ; if ( data . hasOwnProperty ( 'count' ) ) { obj [ 'count' ] = ApiClient . convertToType ( data [ 'count' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'countType' ) ) { obj [ 'countType' ] = ApiClient . convertToType ( data [ 'countType' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'inboxId' ) ) { obj [ 'inboxId' ] = ApiClient . convertToType ( data [ 'inboxId' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'matches' ) ) { obj [ 'matches' ] = ApiClient . convertToType ( data [ 'matches' ] , [ MatchOption ] ) ; } if ( data . hasOwnProperty ( 'sortDirection' ) ) { obj [ 'sortDirection' ] = ApiClient . convertToType ( data [ 'sortDirection' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'timeout' ) ) { obj [ 'timeout' ] = ApiClient . convertToType ( data [ 'timeout' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'unreadOnly' ) ) { obj [ 'unreadOnly' ] = ApiClient . convertToType ( data [ 'unreadOnly' ] , 'Boolean' ) ; } } return obj ; }
Constructs a <code>WaitForConditions</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > WaitForConditions< / code > from a plain JavaScript object optionally creating a new instance .