/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * The version of the OpenAPI document: 0.3.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 { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface EnableResponse
 */
export interface EnableResponse {
    /**
     * 
     * @type {string}
     * @memberof EnableResponse
     */
    identity?: string;
    /**
     * 
     * @type {string}
     * @memberof EnableResponse
     */
    cfg?: string;
}

/**
 * Check if a given object implements the EnableResponse interface.
 */
export function instanceOfEnableResponse(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function EnableResponseFromJSON(json: any): EnableResponse {
    return EnableResponseFromJSONTyped(json, false);
}

export function EnableResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableResponse {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'identity': !exists(json, 'identity') ? undefined : json['identity'],
        'cfg': !exists(json, 'cfg') ? undefined : json['cfg'],
    };
}

export function EnableResponseToJSON(value?: EnableResponse | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'identity': value.identity,
        'cfg': value.cfg,
    };
}

