/* 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';

/**
 * 
 * @export
 * @interface OutstandingReview
 */
export interface OutstandingReview {
    /**
     * 
     * @type {string}
     * @memberof OutstandingReview
     */
    review_link: string;
    /**
     * 
     * @type {FeatureLink}
     * @memberof OutstandingReview
     */
    feature: FeatureLink;
    /**
     * The development stage that the feature has reached:
     *   - [`incubating`](https://www.chromium.org/blink/launching-features/#start-incubating)
     *   - [`prototyping`](https://www.chromium.org/blink/launching-features/#prototyping)
     *   - [`dev-trial`](https://www.chromium.org/blink/launching-features/#dev-trials)
     *   - [`wide-review`](https://www.chromium.org/blink/launching-features/#widen-review)
     *   - [`origin-trial`](https://www.chromium.org/blink/launching-features/#origin-trials)
     *   - [`shipping`](https://www.chromium.org/blink/launching-features/#new-feature-prepare-to-ship)
     *   - `shipped` - The feature is enabled by default in Chromium.
     * 
     * @type {string}
     * @memberof OutstandingReview
     */
    current_stage: OutstandingReviewCurrentStageEnum;
    /**
     * 
     * @type {number}
     * @memberof OutstandingReview
     */
    estimated_start_milestone?: number;
    /**
     * 
     * @type {number}
     * @memberof OutstandingReview
     */
    estimated_end_milestone?: number;
}


/**
 * @export
 */
export const OutstandingReviewCurrentStageEnum = {
    incubating: 'incubating',
    prototyping: 'prototyping',
    dev_trial: 'dev-trial',
    wide_review: 'wide-review',
    origin_trial: 'origin-trial',
    shipping: 'shipping',
    shipped: 'shipped'
} as const;
export type OutstandingReviewCurrentStageEnum = typeof OutstandingReviewCurrentStageEnum[keyof typeof OutstandingReviewCurrentStageEnum];


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

export function OutstandingReviewFromJSON(json: any): OutstandingReview {
    return OutstandingReviewFromJSONTyped(json, false);
}

export function OutstandingReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutstandingReview {
    if (json == null) {
        return json;
    }
    return {
        
        'review_link': json['review_link'],
        'feature': FeatureLinkFromJSON(json['feature']),
        'current_stage': json['current_stage'],
        'estimated_start_milestone': json['estimated_start_milestone'] == null ? undefined : json['estimated_start_milestone'],
        'estimated_end_milestone': json['estimated_end_milestone'] == null ? undefined : json['estimated_end_milestone'],
    };
}

export function OutstandingReviewToJSON(value?: OutstandingReview | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'review_link': value['review_link'],
        'feature': FeatureLinkToJSON(value['feature']),
        'current_stage': value['current_stage'],
        'estimated_start_milestone': value['estimated_start_milestone'],
        'estimated_end_milestone': value['estimated_end_milestone'],
    };
}

