/* tslint:disable */
/* eslint-disable */
/**
 * agent/agentGrpc/agent.proto
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: version not set
 * 
 *
 * 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 AccessDetail
 */
export interface AccessDetail {
    /**
     * 
     * @type {string}
     * @memberof AccessDetail
     */
    frontendToken?: string;
    /**
     * 
     * @type {string}
     * @memberof AccessDetail
     */
    token?: string;
    /**
     * 
     * @type {string}
     * @memberof AccessDetail
     */
    bindAddress?: string;
    /**
     * 
     * @type {Array<string>}
     * @memberof AccessDetail
     */
    responseHeaders?: Array<string>;
}

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

export function AccessDetailFromJSON(json: any): AccessDetail {
    return AccessDetailFromJSONTyped(json, false);
}

export function AccessDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessDetail {
    if (json == null) {
        return json;
    }
    return {
        
        'frontendToken': json['frontendToken'] == null ? undefined : json['frontendToken'],
        'token': json['token'] == null ? undefined : json['token'],
        'bindAddress': json['bindAddress'] == null ? undefined : json['bindAddress'],
        'responseHeaders': json['responseHeaders'] == null ? undefined : json['responseHeaders'],
    };
}

export function AccessDetailToJSON(value?: AccessDetail | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'frontendToken': value['frontendToken'],
        'token': value['token'],
        'bindAddress': value['bindAddress'],
        'responseHeaders': value['responseHeaders'],
    };
}

