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

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

    return isInstance;
}

export function ShareResponseFromJSON(json: any): ShareResponse {
    return ShareResponseFromJSONTyped(json, false);
}

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

export function ShareResponseToJSON(value?: ShareResponse | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'frontendProxyEndpoints': value.frontendProxyEndpoints,
        'shrToken': value.shrToken,
    };
}

