"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfApplication = instanceOfApplication;
exports.ApplicationFromJSON = ApplicationFromJSON;
exports.ApplicationFromJSONTyped = ApplicationFromJSONTyped;
exports.ApplicationToJSON = ApplicationToJSON;
exports.ApplicationToJSONTyped = ApplicationToJSONTyped;
const PolicyEngineMode_1 = require("./PolicyEngineMode");
const ThemedUrls_1 = require("./ThemedUrls");
const Provider_1 = require("./Provider");
/**
 * Check if a given object implements the Application interface.
 */
function instanceOfApplication(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('slug' in value) || value['slug'] === undefined)
        return false;
    if (!('providerObj' in value) || value['providerObj'] === undefined)
        return false;
    if (!('backchannelProvidersObj' in value) || value['backchannelProvidersObj'] === undefined)
        return false;
    if (!('launchUrl' in value) || value['launchUrl'] === undefined)
        return false;
    if (!('metaIconUrl' in value) || value['metaIconUrl'] === undefined)
        return false;
    if (!('metaIconThemedUrls' in value) || value['metaIconThemedUrls'] === undefined)
        return false;
    return true;
}
function ApplicationFromJSON(json) {
    return ApplicationFromJSONTyped(json, false);
}
function ApplicationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'slug': json['slug'],
        'provider': json['provider'] == null ? undefined : json['provider'],
        'providerObj': (0, Provider_1.ProviderFromJSON)(json['provider_obj']),
        'backchannelProviders': json['backchannel_providers'] == null ? undefined : json['backchannel_providers'],
        'backchannelProvidersObj': (json['backchannel_providers_obj'].map(Provider_1.ProviderFromJSON)),
        'launchUrl': json['launch_url'],
        'openInNewTab': json['open_in_new_tab'] == null ? undefined : json['open_in_new_tab'],
        'metaLaunchUrl': json['meta_launch_url'] == null ? undefined : json['meta_launch_url'],
        'metaIcon': json['meta_icon'] == null ? undefined : json['meta_icon'],
        'metaIconUrl': json['meta_icon_url'],
        'metaIconThemedUrls': (0, ThemedUrls_1.ThemedUrlsFromJSON)(json['meta_icon_themed_urls']),
        'metaDescription': json['meta_description'] == null ? undefined : json['meta_description'],
        'metaPublisher': json['meta_publisher'] == null ? undefined : json['meta_publisher'],
        'policyEngineMode': json['policy_engine_mode'] == null ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
        'group': json['group'] == null ? undefined : json['group'],
    };
}
function ApplicationToJSON(json) {
    return ApplicationToJSONTyped(json, false);
}
function ApplicationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'slug': value['slug'],
        'provider': value['provider'],
        'backchannel_providers': value['backchannelProviders'],
        'open_in_new_tab': value['openInNewTab'],
        'meta_launch_url': value['metaLaunchUrl'],
        'meta_icon': value['metaIcon'],
        'meta_description': value['metaDescription'],
        'meta_publisher': value['metaPublisher'],
        'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value['policyEngineMode']),
        'group': value['group'],
    };
}
//# sourceMappingURL=Application.js.map