/* 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 { LoginOtp200ResponsePayload } from './LoginOtp200ResponsePayload';
import {
    LoginOtp200ResponsePayloadFromJSON,
    LoginOtp200ResponsePayloadFromJSONTyped,
    LoginOtp200ResponsePayloadToJSON,
    LoginOtp200ResponsePayloadToJSONTyped,
} from './LoginOtp200ResponsePayload';

/**
 * 
 * @export
 * @interface LoginOtp200Response
 */
export interface LoginOtp200Response {
    /**
     * 
     * @type {string}
     * @memberof LoginOtp200Response
     */
    kind: LoginOtp200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof LoginOtp200Response
     */
    msg: LoginOtp200ResponseMsgEnum;
    /**
     * 
     * @type {LoginOtp200ResponsePayload}
     * @memberof LoginOtp200Response
     */
    payload: LoginOtp200ResponsePayload;
}


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

/**
 * @export
 */
export const LoginOtp200ResponseMsgEnum = {
    OtpSuccess: 'otp.success'
} as const;
export type LoginOtp200ResponseMsgEnum = typeof LoginOtp200ResponseMsgEnum[keyof typeof LoginOtp200ResponseMsgEnum];


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

export function LoginOtp200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginOtp200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': LoginOtp200ResponsePayloadFromJSON(json['payload']),
    };
}

export function LoginOtp200ResponseToJSON(json: any): LoginOtp200Response {
    return LoginOtp200ResponseToJSONTyped(json, false);
}

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

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

