/* 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';
import type { FeatureLink } from './FeatureLink';
import {
    FeatureLinkFromJSON,
    FeatureLinkFromJSONTyped,
    FeatureLinkToJSON,
} from './FeatureLink';
import type { GateLatency } from './GateLatency';
import {
    GateLatencyFromJSON,
    GateLatencyFromJSONTyped,
    GateLatencyToJSON,
} from './GateLatency';

/**
 * 
 * @export
 * @interface ReviewLatency
 */
export interface ReviewLatency {
    /**
     * 
     * @type {FeatureLink}
     * @memberof ReviewLatency
     */
    feature: FeatureLink;
    /**
     * 
     * @type {Array<GateLatency>}
     * @memberof ReviewLatency
     */
    gate_reviews: Array<GateLatency>;
}

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

export function ReviewLatencyFromJSON(json: any): ReviewLatency {
    return ReviewLatencyFromJSONTyped(json, false);
}

export function ReviewLatencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewLatency {
    if (json == null) {
        return json;
    }
    return {
        
        'feature': FeatureLinkFromJSON(json['feature']),
        'gate_reviews': ((json['gate_reviews'] as Array<any>).map(GateLatencyFromJSON)),
    };
}

export function ReviewLatencyToJSON(value?: ReviewLatency | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'feature': FeatureLinkToJSON(value['feature']),
        'gate_reviews': ((value['gate_reviews'] as Array<any>).map(GateLatencyToJSON)),
    };
}

