"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.instanceOfLogEvent = instanceOfLogEvent;
exports.LogEventFromJSON = LogEventFromJSON;
exports.LogEventFromJSONTyped = LogEventFromJSONTyped;
exports.LogEventToJSON = LogEventToJSON;
exports.LogEventToJSONTyped = LogEventToJSONTyped;
const LogLevelEnum_1 = require("./LogLevelEnum");
/**
 * Check if a given object implements the LogEvent interface.
 */
function instanceOfLogEvent(value) {
    if (!('timestamp' in value) || value['timestamp'] === undefined)
        return false;
    if (!('logLevel' in value) || value['logLevel'] === undefined)
        return false;
    if (!('logger' in value) || value['logger'] === undefined)
        return false;
    if (!('event' in value) || value['event'] === undefined)
        return false;
    if (!('attributes' in value) || value['attributes'] === undefined)
        return false;
    return true;
}
function LogEventFromJSON(json) {
    return LogEventFromJSONTyped(json, false);
}
function LogEventFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'timestamp': (new Date(json['timestamp'])),
        'logLevel': (0, LogLevelEnum_1.LogLevelEnumFromJSON)(json['log_level']),
        'logger': json['logger'],
        'event': json['event'],
        'attributes': json['attributes'],
    };
}
function LogEventToJSON(json) {
    return LogEventToJSONTyped(json, false);
}
function LogEventToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'timestamp': value['timestamp'].toISOString(),
        'log_level': (0, LogLevelEnum_1.LogLevelEnumToJSON)(value['logLevel']),
        'logger': value['logger'],
        'event': value['event'],
        'attributes': value['attributes'],
    };
}
//# sourceMappingURL=LogEvent.js.map