"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfPatchedNotificationRuleRequest = instanceOfPatchedNotificationRuleRequest;
exports.PatchedNotificationRuleRequestFromJSON = PatchedNotificationRuleRequestFromJSON;
exports.PatchedNotificationRuleRequestFromJSONTyped = PatchedNotificationRuleRequestFromJSONTyped;
exports.PatchedNotificationRuleRequestToJSON = PatchedNotificationRuleRequestToJSON;
exports.PatchedNotificationRuleRequestToJSONTyped = PatchedNotificationRuleRequestToJSONTyped;
const SeverityEnum_1 = require("./SeverityEnum");
/**
 * Check if a given object implements the PatchedNotificationRuleRequest interface.
 */
function instanceOfPatchedNotificationRuleRequest(value) {
    return true;
}
function PatchedNotificationRuleRequestFromJSON(json) {
    return PatchedNotificationRuleRequestFromJSONTyped(json, false);
}
function PatchedNotificationRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : 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 PatchedNotificationRuleRequestToJSON(json) {
    return PatchedNotificationRuleRequestToJSONTyped(json, false);
}
function PatchedNotificationRuleRequestToJSONTyped(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=PatchedNotificationRuleRequest.js.map