"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.instanceOfNotification = instanceOfNotification;
exports.NotificationFromJSON = NotificationFromJSON;
exports.NotificationFromJSONTyped = NotificationFromJSONTyped;
exports.NotificationToJSON = NotificationToJSON;
exports.NotificationToJSONTyped = NotificationToJSONTyped;
const SeverityEnum_1 = require("./SeverityEnum");
const Event_1 = require("./Event");
/**
 * Check if a given object implements the Notification interface.
 */
function instanceOfNotification(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('severity' in value) || value['severity'] === undefined)
        return false;
    if (!('body' in value) || value['body'] === undefined)
        return false;
    if (!('created' in value) || value['created'] === undefined)
        return false;
    return true;
}
function NotificationFromJSON(json) {
    return NotificationFromJSONTyped(json, false);
}
function NotificationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'severity': (0, SeverityEnum_1.SeverityEnumFromJSON)(json['severity']),
        'body': json['body'],
        'hyperlink': json['hyperlink'] == null ? undefined : json['hyperlink'],
        'hyperlinkLabel': json['hyperlink_label'] == null ? undefined : json['hyperlink_label'],
        'created': (new Date(json['created'])),
        'event': json['event'] == null ? undefined : (0, Event_1.EventFromJSON)(json['event']),
        'seen': json['seen'] == null ? undefined : json['seen'],
    };
}
function NotificationToJSON(json) {
    return NotificationToJSONTyped(json, false);
}
function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'hyperlink': value['hyperlink'],
        'hyperlink_label': value['hyperlinkLabel'],
        'event': (0, Event_1.EventToJSON)(value['event']),
        'seen': value['seen'],
    };
}
//# sourceMappingURL=Notification.js.map