/* tslint:disable */
/* eslint-disable */
/**
 * starchart
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.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 VisitorData
 */
export interface VisitorData {
    /**
     * the planet to visit
     * @type {any}
     * @memberof VisitorData
     */
    planetId: any | null;
}

/**
 * Check if a given object implements the VisitorData interface.
 */
export function instanceOfVisitorData(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "planetId" in value;

    return isInstance;
}

export function VisitorDataFromJSON(json: any): VisitorData {
    return VisitorDataFromJSONTyped(json, false);
}

export function VisitorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): VisitorData {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'planetId': json['planet_id'],
    };
}

export function VisitorDataToJSON(value?: VisitorData | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'planet_id': value.planetId,
    };
}

