/* 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 Login200Response
 */
export interface Login200Response {
    /**
     * 
     * @type {string}
     * @memberof Login200Response
     */
    kind: Login200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof Login200Response
     */
    msg: Login200ResponseMsgEnum;
    /**
     * 
     * @type {GuestLogin200ResponsePayload}
     * @memberof Login200Response
     */
    payload: GuestLogin200ResponsePayload;
}


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

/**
 * @export
 */
export const Login200ResponseMsgEnum = {
    LoginSuccess: 'login.success'
} as const;
export type Login200ResponseMsgEnum = typeof Login200ResponseMsgEnum[keyof typeof Login200ResponseMsgEnum];


/**
 * Check if a given object implements the Login200Response interface.
 */
export function instanceOfLogin200Response(value: object): value is Login200Response {
    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 Login200ResponseFromJSON(json: any): Login200Response {
    return Login200ResponseFromJSONTyped(json, false);
}

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

export function Login200ResponseToJSON(json: any): Login200Response {
    return Login200ResponseToJSONTyped(json, false);
}

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

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

