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

            if (data.hasOwnProperty('content')) {
                obj['content'] = ApiClient.convertToType(data['content'], [EmailProjection]);
            }
            if (data.hasOwnProperty('empty')) {
                obj['empty'] = ApiClient.convertToType(data['empty'], 'Boolean');
            }
            if (data.hasOwnProperty('first')) {
                obj['first'] = ApiClient.convertToType(data['first'], 'Boolean');
            }
            if (data.hasOwnProperty('last')) {
                obj['last'] = ApiClient.convertToType(data['last'], 'Boolean');
            }
            if (data.hasOwnProperty('number')) {
                obj['number'] = ApiClient.convertToType(data['number'], 'Number');
            }
            if (data.hasOwnProperty('numberOfElements')) {
                obj['numberOfElements'] = ApiClient.convertToType(data['numberOfElements'], 'Number');
            }
            if (data.hasOwnProperty('pageable')) {
                obj['pageable'] = Pageable.constructFromObject(data['pageable']);
            }
            if (data.hasOwnProperty('size')) {
                obj['size'] = ApiClient.convertToType(data['size'], 'Number');
            }
            if (data.hasOwnProperty('sort')) {
                obj['sort'] = Sort.constructFromObject(data['sort']);
            }
            if (data.hasOwnProperty('totalElements')) {
                obj['totalElements'] = ApiClient.convertToType(data['totalElements'], 'Number');
            }
            if (data.hasOwnProperty('totalPages')) {
                obj['totalPages'] = ApiClient.convertToType(data['totalPages'], 'Number');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>PageEmailProjection</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/PageEmailProjection} obj Optional instance to populate.
     * @return {module:model/PageEmailProjection} The populated <code>PageEmailProjection</code> instance.
     */
Constructs a PageEmailProjection 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/PageEmailProjection} obj Optional instance to populate.
Constructs a PageEmailProjection 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 / PageEmailProjection } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new PageEmailProjection();
            if (data.hasOwnProperty('content')) {
                obj['content'] = ApiClient.convertToType(data['content'], [EmailProjection]);
            }
            if (data.hasOwnProperty('empty')) {
                obj['empty'] = ApiClient.convertToType(data['empty'], 'Boolean');
            }
            if (data.hasOwnProperty('first')) {
                obj['first'] = ApiClient.convertToType(data['first'], 'Boolean');
            }
            if (data.hasOwnProperty('last')) {
                obj['last'] = ApiClient.convertToType(data['last'], 'Boolean');
            }
            if (data.hasOwnProperty('number')) {
                obj['number'] = ApiClient.convertToType(data['number'], 'Number');
            }
            if (data.hasOwnProperty('numberOfElements')) {
                obj['numberOfElements'] = ApiClient.convertToType(data['numberOfElements'], 'Number');
            }
            if (data.hasOwnProperty('pageable')) {
                obj['pageable'] = Pageable.constructFromObject(data['pageable']);
            }
            if (data.hasOwnProperty('size')) {
                obj['size'] = ApiClient.convertToType(data['size'], 'Number');
            }
            if (data.hasOwnProperty('sort')) {
                obj['sort'] = Sort.constructFromObject(data['sort']);
            }
            if (data.hasOwnProperty('totalElements')) {
                obj['totalElements'] = ApiClient.convertToType(data['totalElements'], 'Number');
            }
            if (data.hasOwnProperty('totalPages')) {
                obj['totalPages'] = ApiClient.convertToType(data['totalPages'], 'Number');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new PageEmailProjection ( ) ; if ( data . hasOwnProperty ( 'content' ) ) { obj [ 'content' ] = ApiClient . convertToType ( data [ 'content' ] , [ EmailProjection ] ) ; } if ( data . hasOwnProperty ( 'empty' ) ) { obj [ 'empty' ] = ApiClient . convertToType ( data [ 'empty' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'first' ) ) { obj [ 'first' ] = ApiClient . convertToType ( data [ 'first' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'last' ) ) { obj [ 'last' ] = ApiClient . convertToType ( data [ 'last' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'number' ) ) { obj [ 'number' ] = ApiClient . convertToType ( data [ 'number' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'numberOfElements' ) ) { obj [ 'numberOfElements' ] = ApiClient . convertToType ( data [ 'numberOfElements' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'pageable' ) ) { obj [ 'pageable' ] = Pageable . constructFromObject ( data [ 'pageable' ] ) ; } if ( data . hasOwnProperty ( 'size' ) ) { obj [ 'size' ] = ApiClient . convertToType ( data [ 'size' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'sort' ) ) { obj [ 'sort' ] = Sort . constructFromObject ( data [ 'sort' ] ) ; } if ( data . hasOwnProperty ( 'totalElements' ) ) { obj [ 'totalElements' ] = ApiClient . convertToType ( data [ 'totalElements' ] , 'Number' ) ; } if ( data . hasOwnProperty ( 'totalPages' ) ) { obj [ 'totalPages' ] = ApiClient . convertToType ( data [ 'totalPages' ] , 'Number' ) ; } } return obj ; }
Constructs a <code>PageEmailProjection</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > PageEmailProjection< / code > from a plain JavaScript object optionally creating a new instance .