/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-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 { mapValues } from '../runtime'; import type { EventRequest } from './EventRequest'; import { EventRequestFromJSON, EventRequestFromJSONTyped, EventRequestToJSON, EventRequestToJSONTyped, } from './EventRequest'; /** * Notification Serializer * @export * @interface NotificationRequest */ export interface NotificationRequest { /** * * @type {string} * @memberof NotificationRequest */ hyperlink?: string | null; /** * * @type {string} * @memberof NotificationRequest */ hyperlinkLabel?: string | null; /** * * @type {EventRequest} * @memberof NotificationRequest */ event?: EventRequest; /** * * @type {boolean} * @memberof NotificationRequest */ seen?: boolean; } /** * Check if a given object implements the NotificationRequest interface. */ export function instanceOfNotificationRequest(value: object): value is NotificationRequest { return true; } export function NotificationRequestFromJSON(json: any): NotificationRequest { return NotificationRequestFromJSONTyped(json, false); } export function NotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRequest { 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 NotificationRequestToJSON(json: any): NotificationRequest { return NotificationRequestToJSONTyped(json, false); } export function NotificationRequestToJSONTyped(value?: NotificationRequest | 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'], }; }