/* 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 WebAuthn authenticator devices
 * @export
 * @interface WebAuthnDeviceRequest
 */
export interface WebAuthnDeviceRequest {
    /**
     * 
     * @type {string}
     * @memberof WebAuthnDeviceRequest
     */
    name: string;
}

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

export function WebAuthnDeviceRequestFromJSON(json: any): WebAuthnDeviceRequest {
    return WebAuthnDeviceRequestFromJSONTyped(json, false);
}

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

export function WebAuthnDeviceRequestToJSON(json: any): WebAuthnDeviceRequest {
    return WebAuthnDeviceRequestToJSONTyped(json, false);
}

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

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

