"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfFlowInspection = instanceOfFlowInspection;
exports.FlowInspectionFromJSON = FlowInspectionFromJSON;
exports.FlowInspectionFromJSONTyped = FlowInspectionFromJSONTyped;
exports.FlowInspectionToJSON = FlowInspectionToJSON;
exports.FlowInspectionToJSONTyped = FlowInspectionToJSONTyped;
const FlowInspectorPlan_1 = require("./FlowInspectorPlan");
/**
 * Check if a given object implements the FlowInspection interface.
 */
function instanceOfFlowInspection(value) {
    if (!('plans' in value) || value['plans'] === undefined)
        return false;
    if (!('isCompleted' in value) || value['isCompleted'] === undefined)
        return false;
    return true;
}
function FlowInspectionFromJSON(json) {
    return FlowInspectionFromJSONTyped(json, false);
}
function FlowInspectionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'plans': (json['plans'].map(FlowInspectorPlan_1.FlowInspectorPlanFromJSON)),
        'currentPlan': json['current_plan'] == null ? undefined : (0, FlowInspectorPlan_1.FlowInspectorPlanFromJSON)(json['current_plan']),
        'isCompleted': json['is_completed'],
    };
}
function FlowInspectionToJSON(json) {
    return FlowInspectionToJSONTyped(json, false);
}
function FlowInspectionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'plans': (value['plans'].map(FlowInspectorPlan_1.FlowInspectorPlanToJSON)),
        'current_plan': (0, FlowInspectorPlan_1.FlowInspectorPlanToJSON)(value['currentPlan']),
        'is_completed': value['isCompleted'],
    };
}
//# sourceMappingURL=FlowInspection.js.map