/* 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 PatchedNotificationRequest */ export interface PatchedNotificationRequest { /** * * @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 { '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 { 'event': EventRequestToJSON(value['event']), 'seen': value['seen'], }; }