/* 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 { Gate } from './Gate';
import {
    GateFromJSON,
    GateFromJSONTyped,
    GateToJSON,
} from './Gate';

/**
 * 
 * @export
 * @interface GetGateResponse
 */
export interface GetGateResponse {
    /**
     * 
     * @type {Array<Gate>}
     * @memberof GetGateResponse
     */
    gates?: Array<Gate>;
}

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

export function GetGateResponseFromJSON(json: any): GetGateResponse {
    return GetGateResponseFromJSONTyped(json, false);
}

export function GetGateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetGateResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'gates': json['gates'] == null ? undefined : ((json['gates'] as Array<any>).map(GateFromJSON)),
    };
}

export function GetGateResponseToJSON(value?: GetGateResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'gates': value['gates'] == null ? undefined : ((value['gates'] as Array<any>).map(GateToJSON)),
    };
}

