/* tslint:disable */
/* eslint-disable */
/**
 * @fastify/swagger
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 9.6.1
 * 
 *
 * 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 GuestLogin200ResponsePayload
 */
export interface GuestLogin200ResponsePayload {
    /**
     * JWT that represent a logged in user
     * @type {string}
     * @memberof GuestLogin200ResponsePayload
     */
    token: string;
}

/**
 * Check if a given object implements the GuestLogin200ResponsePayload interface.
 */
export function instanceOfGuestLogin200ResponsePayload(value: object): value is GuestLogin200ResponsePayload {
    if (!('token' in value) || value['token'] === undefined) return false;
    return true;
}

export function GuestLogin200ResponsePayloadFromJSON(json: any): GuestLogin200ResponsePayload {
    return GuestLogin200ResponsePayloadFromJSONTyped(json, false);
}

export function GuestLogin200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuestLogin200ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'token': json['token'],
    };
}

export function GuestLogin200ResponsePayloadToJSON(json: any): GuestLogin200ResponsePayload {
    return GuestLogin200ResponsePayloadToJSONTyped(json, false);
}

export function GuestLogin200ResponsePayloadToJSONTyped(value?: GuestLogin200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'token': value['token'],
    };
}

