/* 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 EnableOtp401ResponseAnyOf
 */
export interface EnableOtp401ResponseAnyOf {
    /**
     * 
     * @type {string}
     * @memberof EnableOtp401ResponseAnyOf
     */
    kind: EnableOtp401ResponseAnyOfKindEnum;
    /**
     * 
     * @type {string}
     * @memberof EnableOtp401ResponseAnyOf
     */
    msg: EnableOtp401ResponseAnyOfMsgEnum;
}


/**
 * @export
 */
export const EnableOtp401ResponseAnyOfKindEnum = {
    Failure: 'failure'
} as const;
export type EnableOtp401ResponseAnyOfKindEnum = typeof EnableOtp401ResponseAnyOfKindEnum[keyof typeof EnableOtp401ResponseAnyOfKindEnum];

/**
 * @export
 */
export const EnableOtp401ResponseAnyOfMsgEnum = {
    EnableOtpFailureNoUser: 'enableOtp.failure.noUser',
    EnableOtpFailureNoSecret: 'enableOtp.failure.noSecret'
} as const;
export type EnableOtp401ResponseAnyOfMsgEnum = typeof EnableOtp401ResponseAnyOfMsgEnum[keyof typeof EnableOtp401ResponseAnyOfMsgEnum];


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

export function EnableOtp401ResponseAnyOfFromJSON(json: any): EnableOtp401ResponseAnyOf {
    return EnableOtp401ResponseAnyOfFromJSONTyped(json, false);
}

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

export function EnableOtp401ResponseAnyOfToJSON(json: any): EnableOtp401ResponseAnyOf {
    return EnableOtp401ResponseAnyOfToJSONTyped(json, false);
}

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

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

