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

import type { DuoResponseEnum } from "./DuoResponseEnum";
import { DuoResponseEnumFromJSON, DuoResponseEnumToJSON } from "./DuoResponseEnum";

/**
 *
 * @export
 * @interface DuoDeviceEnrollmentStatus
 */
export interface DuoDeviceEnrollmentStatus {
    /**
     *
     * @type {DuoResponseEnum}
     * @memberof DuoDeviceEnrollmentStatus
     */
    duoResponse: DuoResponseEnum;
}

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

export function DuoDeviceEnrollmentStatusFromJSON(json: any): DuoDeviceEnrollmentStatus {
    return DuoDeviceEnrollmentStatusFromJSONTyped(json, false);
}

export function DuoDeviceEnrollmentStatusFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): DuoDeviceEnrollmentStatus {
    if (json == null) {
        return json;
    }
    return {
        duoResponse: DuoResponseEnumFromJSON(json["duo_response"]),
    };
}

export function DuoDeviceEnrollmentStatusToJSON(json: any): DuoDeviceEnrollmentStatus {
    return DuoDeviceEnrollmentStatusToJSONTyped(json, false);
}

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

    return {
        duo_response: DuoResponseEnumToJSON(value["duoResponse"]),
    };
}
