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

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

export function PatchedEmailDeviceRequestFromJSON(json: any): PatchedEmailDeviceRequest {
    return PatchedEmailDeviceRequestFromJSONTyped(json, false);
}

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

export function PatchedEmailDeviceRequestToJSON(json: any): PatchedEmailDeviceRequest {
    return PatchedEmailDeviceRequestToJSONTyped(json, false);
}

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

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

