/* 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 { ReleaseNoteFeature } from './ReleaseNoteFeature';
import {
    ReleaseNoteFeatureFromJSON,
    ReleaseNoteFeatureFromJSONTyped,
    ReleaseNoteFeatureToJSON,
} from './ReleaseNoteFeature';

/**
 * Public release notes payload containing categorized features for a milestone.
 * @export
 * @interface ReleaseNotesResponse
 */
export interface ReleaseNotesResponse {
    /**
     * Target Chromium milestone number.
     * @type {number}
     * @memberof ReleaseNotesResponse
     */
    milestone: number;
    /**
     * List of curated feature release notes for the milestone.
     * @type {Array<ReleaseNoteFeature>}
     * @memberof ReleaseNotesResponse
     */
    features: Array<ReleaseNoteFeature>;
}

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

export function ReleaseNotesResponseFromJSON(json: any): ReleaseNotesResponse {
    return ReleaseNotesResponseFromJSONTyped(json, false);
}

export function ReleaseNotesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseNotesResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'milestone': json['milestone'],
        'features': ((json['features'] as Array<any>).map(ReleaseNoteFeatureFromJSON)),
    };
}

export function ReleaseNotesResponseToJSON(value?: ReleaseNotesResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'milestone': value['milestone'],
        'features': ((value['features'] as Array<any>).map(ReleaseNoteFeatureToJSON)),
    };
}

