"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.instanceOfVersion = instanceOfVersion;
exports.VersionFromJSON = VersionFromJSON;
exports.VersionFromJSONTyped = VersionFromJSONTyped;
exports.VersionToJSON = VersionToJSON;
exports.VersionToJSONTyped = VersionToJSONTyped;
/**
 * Check if a given object implements the Version interface.
 */
function instanceOfVersion(value) {
    if (!('versionCurrent' in value) || value['versionCurrent'] === undefined)
        return false;
    if (!('versionLatest' in value) || value['versionLatest'] === undefined)
        return false;
    if (!('versionLatestValid' in value) || value['versionLatestValid'] === undefined)
        return false;
    if (!('buildHash' in value) || value['buildHash'] === undefined)
        return false;
    if (!('outdated' in value) || value['outdated'] === undefined)
        return false;
    if (!('outpostOutdated' in value) || value['outpostOutdated'] === undefined)
        return false;
    return true;
}
function VersionFromJSON(json) {
    return VersionFromJSONTyped(json, false);
}
function VersionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'versionCurrent': json['version_current'],
        'versionLatest': json['version_latest'],
        'versionLatestValid': json['version_latest_valid'],
        'buildHash': json['build_hash'],
        'outdated': json['outdated'],
        'outpostOutdated': json['outpost_outdated'],
    };
}
function VersionToJSON(json) {
    return VersionToJSONTyped(json, false);
}
function VersionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {};
}
//# sourceMappingURL=Version.js.map