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

            if (data.hasOwnProperty('offset')) {
                obj['offset'] = ApiClient.convertToType(data['offset'], 'Number');
            }
            if (data.hasOwnProperty('pageNumber')) {
                obj['pageNumber'] = ApiClient.convertToType(data['pageNumber'], 'Number');
            }
            if (data.hasOwnProperty('pageSize')) {
                obj['pageSize'] = ApiClient.convertToType(data['pageSize'], 'Number');
            }
            if (data.hasOwnProperty('paged')) {
                obj['paged'] = ApiClient.convertToType(data['paged'], 'Boolean');
            }
            if (data.hasOwnProperty('sort')) {
                obj['sort'] = Sort.constructFromObject(data['sort']);
            }
            if (data.hasOwnProperty('unpaged')) {
                obj['unpaged'] = ApiClient.convertToType(data['unpaged'], 'Boolean');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>Pageable</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/Pageable} obj Optional instance to populate.
     * @return {module:model/Pageable} The populated <code>Pageable</code> instance.
     */
Constructs a Pageable 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/Pageable} obj Optional instance to populate.
@return {module:model/Pageable} The populated Pageable instance.
Constructs a Pageable 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 / Pageable } obj Optional instance to populate . @return { module : model / Pageable } The populated Pageable instance .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new Pageable();
            if (data.hasOwnProperty('offset')) {
                obj['offset'] = ApiClient.convertToType(data['offset'], 'Number');
            }
            if (data.hasOwnProperty('pageNumber')) {
                obj['pageNumber'] = ApiClient.convertToType(data['pageNumber'], 'Number');
            }
            if (data.hasOwnProperty('pageSize')) {
                obj['pageSize'] = ApiClient.convertToType(data['pageSize'], 'Number');
            }
            if (data.hasOwnProperty('paged')) {
                obj['paged'] = ApiClient.convertToType(data['paged'], 'Boolean');
            }
            if (data.hasOwnProperty('sort')) {
                obj['sort'] = Sort.constructFromObject(data['sort']);
            }
            if (data.hasOwnProperty('unpaged')) {
                obj['unpaged'] = ApiClient.convertToType(data['unpaged'], 'Boolean');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new Pageable ( ) ; if ( data . hasOwnProperty ( 'offset' ) ) { obj [ 'offset' ] = ApiClient . convertToType ( data [ 'offset' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'pageNumber' ) ) { obj [ 'pageNumber' ] = ApiClient . convertToType ( data [ 'pageNumber' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'pageSize' ) ) { obj [ 'pageSize' ] = ApiClient . convertToType ( data [ 'pageSize' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'paged' ) ) { obj [ 'paged' ] = ApiClient . convertToType ( data [ 'paged' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'sort' ) ) { obj [ 'sort' ] = Sort . constructFromObject ( data [ 'sort' ] ) ; } if ( data . hasOwnProperty ( 'unpaged' ) ) { obj [ 'unpaged' ] = ApiClient . convertToType ( data [ 'unpaged' ] , 'Boolean' ) ; } } return obj ; }
Constructs a <code>Pageable</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > Pageable< / code > from a plain JavaScript object optionally creating a new instance .