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

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

export function PatchedDuoDeviceRequestFromJSON(json: any): PatchedDuoDeviceRequest {
    return PatchedDuoDeviceRequestFromJSONTyped(json, false);
}

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

export function PatchedDuoDeviceRequestToJSON(json: any): PatchedDuoDeviceRequest {
    return PatchedDuoDeviceRequestToJSONTyped(json, false);
}

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

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

