/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * 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 {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 { '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 { 'event': EventRequestToJSON(value['event']), 'seen': value['seen'], }; }