/* 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 { ReleaseNotesL10nItem } from './ReleaseNotesL10nItem';
import {
    ReleaseNotesL10nItemFromJSON,
    ReleaseNotesL10nItemFromJSONTyped,
    ReleaseNotesL10nItemToJSON,
} from './ReleaseNotesL10nItem';

/**
 * 
 * @export
 * @interface ReleaseNotesL10nResponse
 */
export interface ReleaseNotesL10nResponse {
    /**
     * 
     * @type {Array<ReleaseNotesL10nItem>}
     * @memberof ReleaseNotesL10nResponse
     */
    features?: Array<ReleaseNotesL10nItem>;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof ReleaseNotesL10nResponse
     */
    descriptions?: { [key: string]: any; };
}

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

export function ReleaseNotesL10nResponseFromJSON(json: any): ReleaseNotesL10nResponse {
    return ReleaseNotesL10nResponseFromJSONTyped(json, false);
}

export function ReleaseNotesL10nResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseNotesL10nResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'features': json['features'] == null ? undefined : ((json['features'] as Array<any>).map(ReleaseNotesL10nItemFromJSON)),
        'descriptions': json['descriptions'] == null ? undefined : json['descriptions'],
    };
}

export function ReleaseNotesL10nResponseToJSON(value?: ReleaseNotesL10nResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'features': value['features'] == null ? undefined : ((value['features'] as Array<any>).map(ReleaseNotesL10nItemToJSON)),
        'descriptions': value['descriptions'],
    };
}

