/* 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'; /** * NotificationWebhookMapping Serializer * @export * @interface PatchedNotificationWebhookMappingRequest */ export interface PatchedNotificationWebhookMappingRequest { /** * * @type {string} * @memberof PatchedNotificationWebhookMappingRequest */ name?: string; /** * * @type {string} * @memberof PatchedNotificationWebhookMappingRequest */ expression?: string; } /** * Check if a given object implements the PatchedNotificationWebhookMappingRequest interface. */ export function instanceOfPatchedNotificationWebhookMappingRequest(value: object): value is PatchedNotificationWebhookMappingRequest { return true; } export function PatchedNotificationWebhookMappingRequestFromJSON(json: any): PatchedNotificationWebhookMappingRequest { return PatchedNotificationWebhookMappingRequestFromJSONTyped(json, false); } export function PatchedNotificationWebhookMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedNotificationWebhookMappingRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'expression': json['expression'] == null ? undefined : json['expression'], }; } export function PatchedNotificationWebhookMappingRequestToJSON(json: any): PatchedNotificationWebhookMappingRequest { return PatchedNotificationWebhookMappingRequestToJSONTyped(json, false); } export function PatchedNotificationWebhookMappingRequestToJSONTyped(value?: PatchedNotificationWebhookMappingRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'expression': value['expression'], }; }