/* 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 device's tokens
 * @export
 * @interface StaticDeviceToken
 */
export interface StaticDeviceToken {
    /**
     *
     * @type {string}
     * @memberof StaticDeviceToken
     */
    token: string;
}

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

export function StaticDeviceTokenFromJSON(json: any): StaticDeviceToken {
    return StaticDeviceTokenFromJSONTyped(json, false);
}

export function StaticDeviceTokenFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): StaticDeviceToken {
    if (json == null) {
        return json;
    }
    return {
        token: json["token"],
    };
}

export function StaticDeviceTokenToJSON(json: any): StaticDeviceToken {
    return StaticDeviceTokenToJSONTyped(json, false);
}

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

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