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

            if (data.hasOwnProperty('createdAt')) {
                obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');
            }
            if (data.hasOwnProperty('description')) {
                obj['description'] = ApiClient.convertToType(data['description'], 'String');
            }
            if (data.hasOwnProperty('emailAddress')) {
                obj['emailAddress'] = ApiClient.convertToType(data['emailAddress'], 'String');
            }
            if (data.hasOwnProperty('expiresAt')) {
                obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'String');
            }
            if (data.hasOwnProperty('favourite')) {
                obj['favourite'] = ApiClient.convertToType(data['favourite'], 'Boolean');
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'String');
            }
            if (data.hasOwnProperty('name')) {
                obj['name'] = ApiClient.convertToType(data['name'], 'String');
            }
            if (data.hasOwnProperty('tags')) {
                obj['tags'] = ApiClient.convertToType(data['tags'], ['String']);
            }
            if (data.hasOwnProperty('userId')) {
                obj['userId'] = ApiClient.convertToType(data['userId'], 'String');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>Inbox</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/Inbox} obj Optional instance to populate.
     * @return {module:model/Inbox} The populated <code>Inbox</code> instance.
     */
Constructs a Inbox 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/Inbox} obj Optional instance to populate.
@return {module:model/Inbox} The populated Inbox instance.
Constructs a Inbox 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 / Inbox } obj Optional instance to populate . @return { module : model / Inbox } The populated Inbox instance .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new Inbox();
            if (data.hasOwnProperty('createdAt')) {
                obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');
            }
            if (data.hasOwnProperty('description')) {
                obj['description'] = ApiClient.convertToType(data['description'], 'String');
            }
            if (data.hasOwnProperty('emailAddress')) {
                obj['emailAddress'] = ApiClient.convertToType(data['emailAddress'], 'String');
            }
            if (data.hasOwnProperty('expiresAt')) {
                obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'String');
            }
            if (data.hasOwnProperty('favourite')) {
                obj['favourite'] = ApiClient.convertToType(data['favourite'], 'Boolean');
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'String');
            }
            if (data.hasOwnProperty('name')) {
                obj['name'] = ApiClient.convertToType(data['name'], 'String');
            }
            if (data.hasOwnProperty('tags')) {
                obj['tags'] = ApiClient.convertToType(data['tags'], ['String']);
            }
            if (data.hasOwnProperty('userId')) {
                obj['userId'] = ApiClient.convertToType(data['userId'], 'String');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new Inbox ( ) ; if ( data . hasOwnProperty ( 'createdAt' ) ) { obj [ 'createdAt' ] = ApiClient . convertToType ( data [ 'createdAt' ] , 'Date' ) ; } if ( data . hasOwnProperty ( 'description' ) ) { obj [ 'description' ] = ApiClient . convertToType ( data [ 'description' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'emailAddress' ) ) { obj [ 'emailAddress' ] = ApiClient . convertToType ( data [ 'emailAddress' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'expiresAt' ) ) { obj [ 'expiresAt' ] = ApiClient . convertToType ( data [ 'expiresAt' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'favourite' ) ) { obj [ 'favourite' ] = ApiClient . convertToType ( data [ 'favourite' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'id' ) ) { obj [ 'id' ] = ApiClient . convertToType ( data [ 'id' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'name' ) ) { obj [ 'name' ] = ApiClient . convertToType ( data [ 'name' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'tags' ) ) { obj [ 'tags' ] = ApiClient . convertToType ( data [ 'tags' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'userId' ) ) { obj [ 'userId' ] = ApiClient . convertToType ( data [ 'userId' ] , 'String' ) ; } } return obj ; }
Constructs a <code>Inbox</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > Inbox< / code > from a plain JavaScript object optionally creating a new instance .