"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.instanceOfNotificationRuleRequest = instanceOfNotificationRuleRequest;
exports.NotificationRuleRequestFromJSON = NotificationRuleRequestFromJSON;
exports.NotificationRuleRequestFromJSONTyped = NotificationRuleRequestFromJSONTyped;
exports.NotificationRuleRequestToJSON = NotificationRuleRequestToJSON;
exports.NotificationRuleRequestToJSONTyped = NotificationRuleRequestToJSONTyped;
const SeverityEnum_1 = require("./SeverityEnum");
/**
 * Check if a given object implements the NotificationRuleRequest interface.
 */
function instanceOfNotificationRuleRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function NotificationRuleRequestFromJSON(json) {
    return NotificationRuleRequestFromJSONTyped(json, false);
}
function NotificationRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'transports': json['transports'] == null ? undefined : json['transports'],
        'severity': json['severity'] == null ? undefined : (0, SeverityEnum_1.SeverityEnumFromJSON)(json['severity']),
        'destinationGroup': json['destination_group'] == null ? undefined : json['destination_group'],
        'destinationEventUser': json['destination_event_user'] == null ? undefined : json['destination_event_user'],
    };
}
function NotificationRuleRequestToJSON(json) {
    return NotificationRuleRequestToJSONTyped(json, false);
}
function NotificationRuleRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'transports': value['transports'],
        'severity': (0, SeverityEnum_1.SeverityEnumToJSON)(value['severity']),
        'destination_group': value['destinationGroup'],
        'destination_event_user': value['destinationEventUser'],
    };
}
//# sourceMappingURL=NotificationRuleRequest.js.map