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

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

export function EmailDeviceRequestFromJSON(json: any): EmailDeviceRequest {
    return EmailDeviceRequestFromJSONTyped(json, false);
}

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

export function EmailDeviceRequestToJSON(json: any): EmailDeviceRequest {
    return EmailDeviceRequestToJSONTyped(json, false);
}

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

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

