/* 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';
/**
 * 
 * @export
 * @interface SurveyAnswers
 */
export interface SurveyAnswers {
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    is_language_polyfill?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    is_api_polyfill?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    is_same_origin_css?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    covers_existence?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    covers_common_cases?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    covers_errors?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    covers_invalidation?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    covers_integration?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    adoption_fields_up_to_date?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    adoption_style_aligned?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    adoption_lead_time?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    adoption_mdn_drafted?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof SurveyAnswers
     */
    adoption_mwg_drafted?: boolean;
    /**
     * 
     * @type {string}
     * @memberof SurveyAnswers
     */
    launch_or_contact?: string;
    /**
     * 
     * @type {string}
     * @memberof SurveyAnswers
     */
    explanation?: string;
}

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

export function SurveyAnswersFromJSON(json: any): SurveyAnswers {
    return SurveyAnswersFromJSONTyped(json, false);
}

export function SurveyAnswersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SurveyAnswers {
    if (json == null) {
        return json;
    }
    return {
        
        'is_language_polyfill': json['is_language_polyfill'] == null ? undefined : json['is_language_polyfill'],
        'is_api_polyfill': json['is_api_polyfill'] == null ? undefined : json['is_api_polyfill'],
        'is_same_origin_css': json['is_same_origin_css'] == null ? undefined : json['is_same_origin_css'],
        'covers_existence': json['covers_existence'] == null ? undefined : json['covers_existence'],
        'covers_common_cases': json['covers_common_cases'] == null ? undefined : json['covers_common_cases'],
        'covers_errors': json['covers_errors'] == null ? undefined : json['covers_errors'],
        'covers_invalidation': json['covers_invalidation'] == null ? undefined : json['covers_invalidation'],
        'covers_integration': json['covers_integration'] == null ? undefined : json['covers_integration'],
        'adoption_fields_up_to_date': json['adoption_fields_up_to_date'] == null ? undefined : json['adoption_fields_up_to_date'],
        'adoption_style_aligned': json['adoption_style_aligned'] == null ? undefined : json['adoption_style_aligned'],
        'adoption_lead_time': json['adoption_lead_time'] == null ? undefined : json['adoption_lead_time'],
        'adoption_mdn_drafted': json['adoption_mdn_drafted'] == null ? undefined : json['adoption_mdn_drafted'],
        'adoption_mwg_drafted': json['adoption_mwg_drafted'] == null ? undefined : json['adoption_mwg_drafted'],
        'launch_or_contact': json['launch_or_contact'] == null ? undefined : json['launch_or_contact'],
        'explanation': json['explanation'] == null ? undefined : json['explanation'],
    };
}

export function SurveyAnswersToJSON(value?: SurveyAnswers | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'is_language_polyfill': value['is_language_polyfill'],
        'is_api_polyfill': value['is_api_polyfill'],
        'is_same_origin_css': value['is_same_origin_css'],
        'covers_existence': value['covers_existence'],
        'covers_common_cases': value['covers_common_cases'],
        'covers_errors': value['covers_errors'],
        'covers_invalidation': value['covers_invalidation'],
        'covers_integration': value['covers_integration'],
        'adoption_fields_up_to_date': value['adoption_fields_up_to_date'],
        'adoption_style_aligned': value['adoption_style_aligned'],
        'adoption_lead_time': value['adoption_lead_time'],
        'adoption_mdn_drafted': value['adoption_mdn_drafted'],
        'adoption_mwg_drafted': value['adoption_mwg_drafted'],
        'launch_or_contact': value['launch_or_contact'],
        'explanation': value['explanation'],
    };
}

