/* tslint:disable */
/* eslint-disable */
/**
 * zrok
 * zrok client access
 *
 * 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 AccessResponse
 */
export interface AccessResponse {
    /**
     * 
     * @type {string}
     * @memberof AccessResponse
     */
    frontendToken?: string;
    /**
     * 
     * @type {string}
     * @memberof AccessResponse
     */
    backendMode?: string;
}

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

export function AccessResponseFromJSON(json: any): AccessResponse {
    return AccessResponseFromJSONTyped(json, false);
}

export function AccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'frontendToken': json['frontendToken'] == null ? undefined : json['frontendToken'],
        'backendMode': json['backendMode'] == null ? undefined : json['backendMode'],
    };
}

export function AccessResponseToJSON(value?: AccessResponse | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'frontendToken': value['frontendToken'],
        'backendMode': value['backendMode'],
    };
}

