"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfRedirectURI = instanceOfRedirectURI;
exports.RedirectURIFromJSON = RedirectURIFromJSON;
exports.RedirectURIFromJSONTyped = RedirectURIFromJSONTyped;
exports.RedirectURIToJSON = RedirectURIToJSON;
exports.RedirectURIToJSONTyped = RedirectURIToJSONTyped;
const MatchingModeEnum_1 = require("./MatchingModeEnum");
/**
 * Check if a given object implements the RedirectURI interface.
 */
function instanceOfRedirectURI(value) {
    if (!('matchingMode' in value) || value['matchingMode'] === undefined)
        return false;
    if (!('url' in value) || value['url'] === undefined)
        return false;
    return true;
}
function RedirectURIFromJSON(json) {
    return RedirectURIFromJSONTyped(json, false);
}
function RedirectURIFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'matchingMode': (0, MatchingModeEnum_1.MatchingModeEnumFromJSON)(json['matching_mode']),
        'url': json['url'],
    };
}
function RedirectURIToJSON(json) {
    return RedirectURIToJSONTyped(json, false);
}
function RedirectURIToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'matching_mode': (0, MatchingModeEnum_1.MatchingModeEnumToJSON)(value['matchingMode']),
        'url': value['url'],
    };
}
//# sourceMappingURL=RedirectURI.js.map