/* tslint:disable */
/* eslint-disable */
/**
 * chomestatus API
 * The API for chromestatus.com. chromestatus.com is the official tool used for tracking feature launches in Blink (the browser engine that powers Chrome and many other web browsers). This tool guides feature owners through our launch process and serves as a primary source for developer information that then ripples throughout the web developer ecosystem. More details at: https://github.com/GoogleChrome/chromium-dashboard
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface TokenRefreshResponse
 */
export interface TokenRefreshResponse {
    /**
     * 
     * @type {string}
     * @memberof TokenRefreshResponse
     */
    token?: string;
    /**
     * 
     * @type {number}
     * @memberof TokenRefreshResponse
     */
    token_expires_sec?: number;
}

/**
 * Check if a given object implements the TokenRefreshResponse interface.
 */
export function instanceOfTokenRefreshResponse(value: object): value is TokenRefreshResponse {
    return true;
}

export function TokenRefreshResponseFromJSON(json: any): TokenRefreshResponse {
    return TokenRefreshResponseFromJSONTyped(json, false);
}

export function TokenRefreshResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenRefreshResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'token': json['token'] == null ? undefined : json['token'],
        'token_expires_sec': json['token_expires_sec'] == null ? undefined : json['token_expires_sec'],
    };
}

export function TokenRefreshResponseToJSON(value?: TokenRefreshResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'token': value['token'],
        'token_expires_sec': value['token_expires_sec'],
    };
}

