"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfContextualFlowInfo = instanceOfContextualFlowInfo;
exports.ContextualFlowInfoFromJSON = ContextualFlowInfoFromJSON;
exports.ContextualFlowInfoFromJSONTyped = ContextualFlowInfoFromJSONTyped;
exports.ContextualFlowInfoToJSON = ContextualFlowInfoToJSON;
exports.ContextualFlowInfoToJSONTyped = ContextualFlowInfoToJSONTyped;
const ThemedUrls_1 = require("./ThemedUrls");
const ContextualFlowInfoLayoutEnum_1 = require("./ContextualFlowInfoLayoutEnum");
/**
 * Check if a given object implements the ContextualFlowInfo interface.
 */
function instanceOfContextualFlowInfo(value) {
    if (!('cancelUrl' in value) || value['cancelUrl'] === undefined)
        return false;
    if (!('layout' in value) || value['layout'] === undefined)
        return false;
    return true;
}
function ContextualFlowInfoFromJSON(json) {
    return ContextualFlowInfoFromJSONTyped(json, false);
}
function ContextualFlowInfoFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'title': json['title'] == null ? undefined : json['title'],
        'background': json['background'] == null ? undefined : json['background'],
        'backgroundThemedUrls': json['background_themed_urls'] == null ? undefined : (0, ThemedUrls_1.ThemedUrlsFromJSON)(json['background_themed_urls']),
        'cancelUrl': json['cancel_url'],
        'layout': (0, ContextualFlowInfoLayoutEnum_1.ContextualFlowInfoLayoutEnumFromJSON)(json['layout']),
    };
}
function ContextualFlowInfoToJSON(json) {
    return ContextualFlowInfoToJSONTyped(json, false);
}
function ContextualFlowInfoToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'title': value['title'],
        'background': value['background'],
        'background_themed_urls': (0, ThemedUrls_1.ThemedUrlsToJSON)(value['backgroundThemedUrls']),
        'cancel_url': value['cancelUrl'],
        'layout': (0, ContextualFlowInfoLayoutEnum_1.ContextualFlowInfoLayoutEnumToJSON)(value['layout']),
    };
}
//# sourceMappingURL=ContextualFlowInfo.js.map