/* 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.
 */

/**
 * Serializer for static authenticator devices
 * @export
 * @interface StaticDeviceRequest
 */
export interface StaticDeviceRequest {
    /**
     * The human-readable name of this device.
     * @type {string}
     * @memberof StaticDeviceRequest
     */
    name: string;
}

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

export function StaticDeviceRequestFromJSON(json: any): StaticDeviceRequest {
    return StaticDeviceRequestFromJSONTyped(json, false);
}

export function StaticDeviceRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): StaticDeviceRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"],
    };
}

export function StaticDeviceRequestToJSON(json: any): StaticDeviceRequest {
    return StaticDeviceRequestToJSONTyped(json, false);
}

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

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