/* 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 { Signin200ResponsePayload } from './Signin200ResponsePayload';
import {
    Signin200ResponsePayloadFromJSON,
    Signin200ResponsePayloadFromJSONTyped,
    Signin200ResponsePayloadToJSON,
    Signin200ResponsePayloadToJSONTyped,
} from './Signin200ResponsePayload';

/**
 * 
 * @export
 * @interface Signin200Response
 */
export interface Signin200Response {
    /**
     * 
     * @type {string}
     * @memberof Signin200Response
     */
    kind: Signin200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof Signin200Response
     */
    msg: Signin200ResponseMsgEnum;
    /**
     * 
     * @type {Signin200ResponsePayload}
     * @memberof Signin200Response
     */
    payload: Signin200ResponsePayload;
}


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

/**
 * @export
 */
export const Signin200ResponseMsgEnum = {
    SigninSuccess: 'signin.success'
} as const;
export type Signin200ResponseMsgEnum = typeof Signin200ResponseMsgEnum[keyof typeof Signin200ResponseMsgEnum];


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

export function Signin200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signin200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': Signin200ResponsePayloadFromJSON(json['payload']),
    };
}

export function Signin200ResponseToJSON(json: any): Signin200Response {
    return Signin200ResponseToJSONTyped(json, false);
}

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

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

