"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.instanceOfConsentStageRequest = instanceOfConsentStageRequest;
exports.ConsentStageRequestFromJSON = ConsentStageRequestFromJSON;
exports.ConsentStageRequestFromJSONTyped = ConsentStageRequestFromJSONTyped;
exports.ConsentStageRequestToJSON = ConsentStageRequestToJSON;
exports.ConsentStageRequestToJSONTyped = ConsentStageRequestToJSONTyped;
const ConsentStageModeEnum_1 = require("./ConsentStageModeEnum");
/**
 * Check if a given object implements the ConsentStageRequest interface.
 */
function instanceOfConsentStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function ConsentStageRequestFromJSON(json) {
    return ConsentStageRequestFromJSONTyped(json, false);
}
function ConsentStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'mode': json['mode'] == null ? undefined : (0, ConsentStageModeEnum_1.ConsentStageModeEnumFromJSON)(json['mode']),
        'consentExpireIn': json['consent_expire_in'] == null ? undefined : json['consent_expire_in'],
    };
}
function ConsentStageRequestToJSON(json) {
    return ConsentStageRequestToJSONTyped(json, false);
}
function ConsentStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'mode': (0, ConsentStageModeEnum_1.ConsentStageModeEnumToJSON)(value['mode']),
        'consent_expire_in': value['consentExpireIn'],
    };
}
//# sourceMappingURL=ConsentStageRequest.js.map