/* 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 EnableOtp200ResponsePayload
 */
export interface EnableOtp200ResponsePayload {
    /**
     * The otp url to feed into a 2fa app
     * @type {string}
     * @memberof EnableOtp200ResponsePayload
     */
    url: string;
}

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

export function EnableOtp200ResponsePayloadFromJSON(json: any): EnableOtp200ResponsePayload {
    return EnableOtp200ResponsePayloadFromJSONTyped(json, false);
}

export function EnableOtp200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableOtp200ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'url': json['url'],
    };
}

export function EnableOtp200ResponsePayloadToJSON(json: any): EnableOtp200ResponsePayload {
    return EnableOtp200ResponsePayloadToJSONTyped(json, false);
}

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

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

