/* 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';
/**
 * 
 * @export
 * @interface DisableOtp401Response
 */
export interface DisableOtp401Response {
    /**
     * 
     * @type {string}
     * @memberof DisableOtp401Response
     */
    kind: DisableOtp401ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof DisableOtp401Response
     */
    msg: DisableOtp401ResponseMsgEnum;
}


/**
 * @export
 */
export const DisableOtp401ResponseKindEnum = {
    NotLoggedIn: 'notLoggedIn'
} as const;
export type DisableOtp401ResponseKindEnum = typeof DisableOtp401ResponseKindEnum[keyof typeof DisableOtp401ResponseKindEnum];

/**
 * @export
 */
export const DisableOtp401ResponseMsgEnum = {
    AuthNoCookie: 'auth.noCookie',
    AuthInvalidKind: 'auth.invalidKind',
    AuthNoUser: 'auth.noUser',
    AuthInvalid: 'auth.invalid'
} as const;
export type DisableOtp401ResponseMsgEnum = typeof DisableOtp401ResponseMsgEnum[keyof typeof DisableOtp401ResponseMsgEnum];


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

export function DisableOtp401ResponseFromJSON(json: any): DisableOtp401Response {
    return DisableOtp401ResponseFromJSONTyped(json, false);
}

export function DisableOtp401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisableOtp401Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
    };
}

export function DisableOtp401ResponseToJSON(json: any): DisableOtp401Response {
    return DisableOtp401ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
    };
}

