/* 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 StatusOtp500Response
 */
export interface StatusOtp500Response {
    /**
     * 
     * @type {string}
     * @memberof StatusOtp500Response
     */
    kind: StatusOtp500ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof StatusOtp500Response
     */
    msg: StatusOtp500ResponseMsgEnum;
}


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

/**
 * @export
 */
export const StatusOtp500ResponseMsgEnum = {
    StatusOtpFailureGeneric: 'statusOtp.failure.generic'
} as const;
export type StatusOtp500ResponseMsgEnum = typeof StatusOtp500ResponseMsgEnum[keyof typeof StatusOtp500ResponseMsgEnum];


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

export function StatusOtp500ResponseFromJSON(json: any): StatusOtp500Response {
    return StatusOtp500ResponseFromJSONTyped(json, false);
}

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

export function StatusOtp500ResponseToJSON(json: any): StatusOtp500Response {
    return StatusOtp500ResponseToJSONTyped(json, false);
}

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

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

