/* 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';
import type { GuestLogin200ResponsePayload } from './GuestLogin200ResponsePayload';
import {
    GuestLogin200ResponsePayloadFromJSON,
    GuestLogin200ResponsePayloadFromJSONTyped,
    GuestLogin200ResponsePayloadToJSON,
    GuestLogin200ResponsePayloadToJSONTyped,
} from './GuestLogin200ResponsePayload';

/**
 * 
 * @export
 * @interface GuestLogin200Response
 */
export interface GuestLogin200Response {
    /**
     * 
     * @type {string}
     * @memberof GuestLogin200Response
     */
    kind: GuestLogin200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof GuestLogin200Response
     */
    msg: GuestLogin200ResponseMsgEnum;
    /**
     * 
     * @type {GuestLogin200ResponsePayload}
     * @memberof GuestLogin200Response
     */
    payload: GuestLogin200ResponsePayload;
}


/**
 * @export
 */
export const GuestLogin200ResponseKindEnum = {
    Success: 'success'
} as const;
export type GuestLogin200ResponseKindEnum = typeof GuestLogin200ResponseKindEnum[keyof typeof GuestLogin200ResponseKindEnum];

/**
 * @export
 */
export const GuestLogin200ResponseMsgEnum = {
    GuestLoginSuccess: 'guestLogin.success'
} as const;
export type GuestLogin200ResponseMsgEnum = typeof GuestLogin200ResponseMsgEnum[keyof typeof GuestLogin200ResponseMsgEnum];


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

export function GuestLogin200ResponseFromJSON(json: any): GuestLogin200Response {
    return GuestLogin200ResponseFromJSONTyped(json, false);
}

export function GuestLogin200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GuestLogin200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': GuestLogin200ResponsePayloadFromJSON(json['payload']),
    };
}

export function GuestLogin200ResponseToJSON(json: any): GuestLogin200Response {
    return GuestLogin200ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
        'payload': GuestLogin200ResponsePayloadToJSON(value['payload']),
    };
}

