/* 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 { SummaryProgressStep } from './SummaryProgressStep';
import {
    SummaryProgressStepFromJSON,
    SummaryProgressStepFromJSONTyped,
    SummaryProgressStepToJSON,
} from './SummaryProgressStep';
import type { SummarySuggestion } from './SummarySuggestion';
import {
    SummarySuggestionFromJSON,
    SummarySuggestionFromJSONTyped,
    SummarySuggestionToJSON,
} from './SummarySuggestion';

/**
 * Response payload containing a feature summary suggestion and its progress execution steps.
 * @export
 * @interface SummarySuggestionResponse
 */
export interface SummarySuggestionResponse {
    /**
     * 
     * @type {SummarySuggestion}
     * @memberof SummarySuggestionResponse
     */
    suggestion: SummarySuggestion;
    /**
     * Ordered timeline of tool execution progress steps for this summary generation.
     * @type {Array<SummaryProgressStep>}
     * @memberof SummarySuggestionResponse
     */
    progress_steps: Array<SummaryProgressStep>;
}

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

export function SummarySuggestionResponseFromJSON(json: any): SummarySuggestionResponse {
    return SummarySuggestionResponseFromJSONTyped(json, false);
}

export function SummarySuggestionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummarySuggestionResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'suggestion': SummarySuggestionFromJSON(json['suggestion']),
        'progress_steps': ((json['progress_steps'] as Array<any>).map(SummaryProgressStepFromJSON)),
    };
}

export function SummarySuggestionResponseToJSON(value?: SummarySuggestionResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'suggestion': SummarySuggestionToJSON(value['suggestion']),
        'progress_steps': ((value['progress_steps'] as Array<any>).map(SummaryProgressStepToJSON)),
    };
}

