"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.instanceOfNotificationTransportRequest = instanceOfNotificationTransportRequest;
exports.NotificationTransportRequestFromJSON = NotificationTransportRequestFromJSON;
exports.NotificationTransportRequestFromJSONTyped = NotificationTransportRequestFromJSONTyped;
exports.NotificationTransportRequestToJSON = NotificationTransportRequestToJSON;
exports.NotificationTransportRequestToJSONTyped = NotificationTransportRequestToJSONTyped;
const NotificationTransportModeEnum_1 = require("./NotificationTransportModeEnum");
/**
 * Check if a given object implements the NotificationTransportRequest interface.
 */
function instanceOfNotificationTransportRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function NotificationTransportRequestFromJSON(json) {
    return NotificationTransportRequestFromJSONTyped(json, false);
}
function NotificationTransportRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'mode': json['mode'] == null ? undefined : (0, NotificationTransportModeEnum_1.NotificationTransportModeEnumFromJSON)(json['mode']),
        'webhookUrl': json['webhook_url'] == null ? undefined : json['webhook_url'],
        'webhookMappingBody': json['webhook_mapping_body'] == null ? undefined : json['webhook_mapping_body'],
        'webhookMappingHeaders': json['webhook_mapping_headers'] == null ? undefined : json['webhook_mapping_headers'],
        'emailSubjectPrefix': json['email_subject_prefix'] == null ? undefined : json['email_subject_prefix'],
        'emailTemplate': json['email_template'] == null ? undefined : json['email_template'],
        'sendOnce': json['send_once'] == null ? undefined : json['send_once'],
    };
}
function NotificationTransportRequestToJSON(json) {
    return NotificationTransportRequestToJSONTyped(json, false);
}
function NotificationTransportRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'mode': (0, NotificationTransportModeEnum_1.NotificationTransportModeEnumToJSON)(value['mode']),
        'webhook_url': value['webhookUrl'],
        'webhook_mapping_body': value['webhookMappingBody'],
        'webhook_mapping_headers': value['webhookMappingHeaders'],
        'email_subject_prefix': value['emailSubjectPrefix'],
        'email_template': value['emailTemplate'],
        'send_once': value['sendOnce'],
    };
}
//# sourceMappingURL=NotificationTransportRequest.js.map