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

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

    return isInstance;
}

export function CreateFrontendRequestFromJSON(json: any): CreateFrontendRequest {
    return CreateFrontendRequestFromJSONTyped(json, false);
}

export function CreateFrontendRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFrontendRequest {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'zId': !exists(json, 'zId') ? undefined : json['zId'],
        'urlTemplate': !exists(json, 'url_template') ? undefined : json['url_template'],
        'publicName': !exists(json, 'public_name') ? undefined : json['public_name'],
    };
}

export function CreateFrontendRequestToJSON(value?: CreateFrontendRequest | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'zId': value.zId,
        'url_template': value.urlTemplate,
        'public_name': value.publicName,
    };
}

