/* 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 GateLatency
 */
export interface GateLatency {
    /**
     * 
     * @type {number}
     * @memberof GateLatency
     */
    gate_type: number;
    /**
     * 
     * @type {number}
     * @memberof GateLatency
     */
    latency_days: number;
}

/**
 * Check if a given object implements the GateLatency interface.
 */
export function instanceOfGateLatency(value: object): value is GateLatency {
    if (!('gate_type' in value) || value['gate_type'] === undefined) return false;
    if (!('latency_days' in value) || value['latency_days'] === undefined) return false;
    return true;
}

export function GateLatencyFromJSON(json: any): GateLatency {
    return GateLatencyFromJSONTyped(json, false);
}

export function GateLatencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): GateLatency {
    if (json == null) {
        return json;
    }
    return {
        
        'gate_type': json['gate_type'],
        'latency_days': json['latency_days'],
    };
}

export function GateLatencyToJSON(value?: GateLatency | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'gate_type': value['gate_type'],
        'latency_days': value['latency_days'],
    };
}

