/* 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 Duo authenticator devices
 * @export
 * @interface DuoDeviceRequest
 */
export interface DuoDeviceRequest {
    /**
     * The human-readable name of this device.
     * @type {string}
     * @memberof DuoDeviceRequest
     */
    name: string;
}

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

export function DuoDeviceRequestFromJSON(json: any): DuoDeviceRequest {
    return DuoDeviceRequestFromJSONTyped(json, false);
}

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

export function DuoDeviceRequestToJSON(json: any): DuoDeviceRequest {
    return DuoDeviceRequestToJSONTyped(json, false);
}

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

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

