"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.instanceOfVersionHistory = instanceOfVersionHistory;
exports.VersionHistoryFromJSON = VersionHistoryFromJSON;
exports.VersionHistoryFromJSONTyped = VersionHistoryFromJSONTyped;
exports.VersionHistoryToJSON = VersionHistoryToJSON;
exports.VersionHistoryToJSONTyped = VersionHistoryToJSONTyped;
/**
 * Check if a given object implements the VersionHistory interface.
 */
function instanceOfVersionHistory(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('timestamp' in value) || value['timestamp'] === undefined)
        return false;
    if (!('version' in value) || value['version'] === undefined)
        return false;
    if (!('build' in value) || value['build'] === undefined)
        return false;
    return true;
}
function VersionHistoryFromJSON(json) {
    return VersionHistoryFromJSONTyped(json, false);
}
function VersionHistoryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'timestamp': (new Date(json['timestamp'])),
        'version': json['version'],
        'build': json['build'],
    };
}
function VersionHistoryToJSON(json) {
    return VersionHistoryToJSONTyped(json, false);
}
function VersionHistoryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'timestamp': value['timestamp'].toISOString(),
        'version': value['version'],
        'build': value['build'],
    };
}
//# sourceMappingURL=VersionHistory.js.map