/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * WebAuthnDeviceType Serializer
 * @export
 * @interface WebAuthnDeviceType
 */
export interface WebAuthnDeviceType {
    /**
     *
     * @type {string}
     * @memberof WebAuthnDeviceType
     */
    aaguid: string;
    /**
     *
     * @type {string}
     * @memberof WebAuthnDeviceType
     */
    description: string;
}

/**
 * Check if a given object implements the WebAuthnDeviceType interface.
 */
export function instanceOfWebAuthnDeviceType(value: object): value is WebAuthnDeviceType {
    if (!("aaguid" in value) || value["aaguid"] === undefined) return false;
    if (!("description" in value) || value["description"] === undefined) return false;
    return true;
}

export function WebAuthnDeviceTypeFromJSON(json: any): WebAuthnDeviceType {
    return WebAuthnDeviceTypeFromJSONTyped(json, false);
}

export function WebAuthnDeviceTypeFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): WebAuthnDeviceType {
    if (json == null) {
        return json;
    }
    return {
        aaguid: json["aaguid"],
        description: json["description"],
    };
}

export function WebAuthnDeviceTypeToJSON(json: any): WebAuthnDeviceType {
    return WebAuthnDeviceTypeToJSONTyped(json, false);
}

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

    return {
        aaguid: value["aaguid"],
        description: value["description"],
    };
}
