/* 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 UnaccessRequest
 */
export interface UnaccessRequest {
    /**
     * 
     * @type {string}
     * @memberof UnaccessRequest
     */
    frontendToken?: string;
    /**
     * 
     * @type {string}
     * @memberof UnaccessRequest
     */
    envZId?: string;
    /**
     * 
     * @type {string}
     * @memberof UnaccessRequest
     */
    shrToken?: string;
}

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

    return isInstance;
}

export function UnaccessRequestFromJSON(json: any): UnaccessRequest {
    return UnaccessRequestFromJSONTyped(json, false);
}

export function UnaccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnaccessRequest {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'frontendToken': !exists(json, 'frontendToken') ? undefined : json['frontendToken'],
        'envZId': !exists(json, 'envZId') ? undefined : json['envZId'],
        'shrToken': !exists(json, 'shrToken') ? undefined : json['shrToken'],
    };
}

export function UnaccessRequestToJSON(value?: UnaccessRequest | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'frontendToken': value.frontendToken,
        'envZId': value.envZId,
        'shrToken': value.shrToken,
    };
}

