/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * 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';
/**
 * Serializer for totp authenticator devices
 * @export
 * @interface TOTPDeviceRequest
 */
export interface TOTPDeviceRequest {
    /**
     * The human-readable name of this device.
     * @type {string}
     * @memberof TOTPDeviceRequest
     */
    name: string;
}

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

export function TOTPDeviceRequestFromJSON(json: any): TOTPDeviceRequest {
    return TOTPDeviceRequestFromJSONTyped(json, false);
}

export function TOTPDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TOTPDeviceRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'],
    };
}

export function TOTPDeviceRequestToJSON(json: any): TOTPDeviceRequest {
    return TOTPDeviceRequestToJSONTyped(json, false);
}

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

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

