/* 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 { SurveyAnswers } from './SurveyAnswers';
import {
    SurveyAnswersFromJSON,
    SurveyAnswersFromJSONTyped,
    SurveyAnswersToJSON,
} from './SurveyAnswers';

/**
 * 
 * @export
 * @interface PatchGateRequest
 */
export interface PatchGateRequest {
    /**
     * 
     * @type {Array<string>}
     * @memberof PatchGateRequest
     */
    assignees?: Array<string>;
    /**
     * 
     * @type {SurveyAnswers}
     * @memberof PatchGateRequest
     */
    survey_answers?: SurveyAnswers;
}

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

export function PatchGateRequestFromJSON(json: any): PatchGateRequest {
    return PatchGateRequestFromJSONTyped(json, false);
}

export function PatchGateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchGateRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'assignees': json['assignees'] == null ? undefined : json['assignees'],
        'survey_answers': json['survey_answers'] == null ? undefined : SurveyAnswersFromJSON(json['survey_answers']),
    };
}

export function PatchGateRequestToJSON(value?: PatchGateRequest | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'assignees': value['assignees'],
        'survey_answers': SurveyAnswersToJSON(value['survey_answers']),
    };
}

