/* 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 PatchedWebAuthnDeviceRequest
 */
export interface PatchedWebAuthnDeviceRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedWebAuthnDeviceRequest
     */
    name?: string;
}

/**
 * Check if a given object implements the PatchedWebAuthnDeviceRequest interface.
 */
export function instanceOfPatchedWebAuthnDeviceRequest(value: object): value is PatchedWebAuthnDeviceRequest {
    return true;
}

export function PatchedWebAuthnDeviceRequestFromJSON(json: any): PatchedWebAuthnDeviceRequest {
    return PatchedWebAuthnDeviceRequestFromJSONTyped(json, false);
}

export function PatchedWebAuthnDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedWebAuthnDeviceRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'] == null ? undefined : json['name'],
    };
}

export function PatchedWebAuthnDeviceRequestToJSON(json: any): PatchedWebAuthnDeviceRequest {
    return PatchedWebAuthnDeviceRequestToJSONTyped(json, false);
}

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

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

