"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfPatchedApplicationRequest = instanceOfPatchedApplicationRequest;
exports.PatchedApplicationRequestFromJSON = PatchedApplicationRequestFromJSON;
exports.PatchedApplicationRequestFromJSONTyped = PatchedApplicationRequestFromJSONTyped;
exports.PatchedApplicationRequestToJSON = PatchedApplicationRequestToJSON;
exports.PatchedApplicationRequestToJSONTyped = PatchedApplicationRequestToJSONTyped;
const PolicyEngineMode_1 = require("./PolicyEngineMode");
/**
 * Check if a given object implements the PatchedApplicationRequest interface.
 */
function instanceOfPatchedApplicationRequest(value) {
    return true;
}
function PatchedApplicationRequestFromJSON(json) {
    return PatchedApplicationRequestFromJSONTyped(json, false);
}
function PatchedApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'slug': json['slug'] == null ? undefined : json['slug'],
        'provider': json['provider'] == null ? undefined : json['provider'],
        'backchannelProviders': json['backchannel_providers'] == null ? undefined : json['backchannel_providers'],
        'openInNewTab': json['open_in_new_tab'] == null ? undefined : json['open_in_new_tab'],
        'metaLaunchUrl': json['meta_launch_url'] == null ? undefined : json['meta_launch_url'],
        '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 PatchedApplicationRequestToJSON(json) {
    return PatchedApplicationRequestToJSONTyped(json, false);
}
function PatchedApplicationRequestToJSONTyped(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_description': value['metaDescription'],
        'meta_publisher': value['metaPublisher'],
        'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value['policyEngineMode']),
        'group': value['group'],
    };
}
//# sourceMappingURL=PatchedApplicationRequest.js.map