/* 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 { GetUser200ResponsePayload } from './GetUser200ResponsePayload';
import {
    GetUser200ResponsePayloadFromJSON,
    GetUser200ResponsePayloadFromJSONTyped,
    GetUser200ResponsePayloadToJSON,
    GetUser200ResponsePayloadToJSONTyped,
} from './GetUser200ResponsePayload';

/**
 * 
 * @export
 * @interface GetUser200Response
 */
export interface GetUser200Response {
    /**
     * 
     * @type {string}
     * @memberof GetUser200Response
     */
    kind: GetUser200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof GetUser200Response
     */
    msg: GetUser200ResponseMsgEnum;
    /**
     * 
     * @type {GetUser200ResponsePayload}
     * @memberof GetUser200Response
     */
    payload: GetUser200ResponsePayload;
}


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

/**
 * @export
 */
export const GetUser200ResponseMsgEnum = {
    UserinfoSuccess: 'userinfo.success'
} as const;
export type GetUser200ResponseMsgEnum = typeof GetUser200ResponseMsgEnum[keyof typeof GetUser200ResponseMsgEnum];


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

export function GetUser200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': GetUser200ResponsePayloadFromJSON(json['payload']),
    };
}

export function GetUser200ResponseToJSON(json: any): GetUser200Response {
    return GetUser200ResponseToJSONTyped(json, false);
}

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

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

