/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

import type { EventRequest } from "./EventRequest";
import { EventRequestFromJSON, EventRequestToJSON } from "./EventRequest";

/**
 * Notification Serializer
 * @export
 * @interface PatchedNotificationRequest
 */
export interface PatchedNotificationRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedNotificationRequest
     */
    hyperlink?: string | null;
    /**
     *
     * @type {string}
     * @memberof PatchedNotificationRequest
     */
    hyperlinkLabel?: string | null;
    /**
     *
     * @type {EventRequest}
     * @memberof PatchedNotificationRequest
     */
    event?: EventRequest;
    /**
     *
     * @type {boolean}
     * @memberof PatchedNotificationRequest
     */
    seen?: boolean;
}

/**
 * Check if a given object implements the PatchedNotificationRequest interface.
 */
export function instanceOfPatchedNotificationRequest(
    value: object,
): value is PatchedNotificationRequest {
    return true;
}

export function PatchedNotificationRequestFromJSON(json: any): PatchedNotificationRequest {
    return PatchedNotificationRequestFromJSONTyped(json, false);
}

export function PatchedNotificationRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedNotificationRequest {
    if (json == null) {
        return json;
    }
    return {
        hyperlink: json["hyperlink"] == null ? undefined : json["hyperlink"],
        hyperlinkLabel: json["hyperlink_label"] == null ? undefined : json["hyperlink_label"],
        event: json["event"] == null ? undefined : EventRequestFromJSON(json["event"]),
        seen: json["seen"] == null ? undefined : json["seen"],
    };
}

export function PatchedNotificationRequestToJSON(json: any): PatchedNotificationRequest {
    return PatchedNotificationRequestToJSONTyped(json, false);
}

export function PatchedNotificationRequestToJSONTyped(
    value?: PatchedNotificationRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        hyperlink: value["hyperlink"],
        hyperlink_label: value["hyperlinkLabel"],
        event: EventRequestToJSON(value["event"]),
        seen: value["seen"],
    };
}
