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

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

    return isInstance;
}

export function AccessRequestFromJSON(json: any): AccessRequest {
    return AccessRequestFromJSONTyped(json, false);
}

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

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

