/* 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 PublicFrontend
 */
export interface PublicFrontend {
    /**
     * 
     * @type {string}
     * @memberof PublicFrontend
     */
    token?: string;
    /**
     * 
     * @type {string}
     * @memberof PublicFrontend
     */
    zId?: string;
    /**
     * 
     * @type {string}
     * @memberof PublicFrontend
     */
    urlTemplate?: string;
    /**
     * 
     * @type {string}
     * @memberof PublicFrontend
     */
    publicName?: string;
    /**
     * 
     * @type {number}
     * @memberof PublicFrontend
     */
    createdAt?: number;
    /**
     * 
     * @type {number}
     * @memberof PublicFrontend
     */
    updatedAt?: number;
}

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

    return isInstance;
}

export function PublicFrontendFromJSON(json: any): PublicFrontend {
    return PublicFrontendFromJSONTyped(json, false);
}

export function PublicFrontendFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicFrontend {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'token': !exists(json, 'token') ? undefined : json['token'],
        'zId': !exists(json, 'zId') ? undefined : json['zId'],
        'urlTemplate': !exists(json, 'urlTemplate') ? undefined : json['urlTemplate'],
        'publicName': !exists(json, 'publicName') ? undefined : json['publicName'],
        'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
        'updatedAt': !exists(json, 'updatedAt') ? undefined : json['updatedAt'],
    };
}

export function PublicFrontendToJSON(value?: PublicFrontend | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'token': value.token,
        'zId': value.zId,
        'urlTemplate': value.urlTemplate,
        'publicName': value.publicName,
        'createdAt': value.createdAt,
        'updatedAt': value.updatedAt,
    };
}

