/* 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 StatusOtp200ResponseAnyOfPayload
 */
export interface StatusOtp200ResponseAnyOfPayload {
    /**
     * The otp secret
     * @type {string}
     * @memberof StatusOtp200ResponseAnyOfPayload
     */
    secret: string;
}

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

export function StatusOtp200ResponseAnyOfPayloadFromJSON(json: any): StatusOtp200ResponseAnyOfPayload {
    return StatusOtp200ResponseAnyOfPayloadFromJSONTyped(json, false);
}

export function StatusOtp200ResponseAnyOfPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusOtp200ResponseAnyOfPayload {
    if (json == null) {
        return json;
    }
    return {
        
        'secret': json['secret'],
    };
}

export function StatusOtp200ResponseAnyOfPayloadToJSON(json: any): StatusOtp200ResponseAnyOfPayload {
    return StatusOtp200ResponseAnyOfPayloadToJSONTyped(json, false);
}

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

    return {
        
        'secret': value['secret'],
    };
}

