/* 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 NotificationWebhookMappingRequest */ export interface NotificationWebhookMappingRequest { /** * * @type {string} * @memberof NotificationWebhookMappingRequest */ name: string; /** * * @type {string} * @memberof NotificationWebhookMappingRequest */ expression: string; } /** * Check if a given object implements the NotificationWebhookMappingRequest interface. */ export function instanceOfNotificationWebhookMappingRequest(value: object): value is NotificationWebhookMappingRequest { if (!('name' in value) || value['name'] === undefined) return false; if (!('expression' in value) || value['expression'] === undefined) return false; return true; } export function NotificationWebhookMappingRequestFromJSON(json: any): NotificationWebhookMappingRequest { return NotificationWebhookMappingRequestFromJSONTyped(json, false); } export function NotificationWebhookMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationWebhookMappingRequest { if (json == null) { return json; } return { 'name': json['name'], 'expression': json['expression'], }; } export function NotificationWebhookMappingRequestToJSON(json: any): NotificationWebhookMappingRequest { return NotificationWebhookMappingRequestToJSONTyped(json, false); } export function NotificationWebhookMappingRequestToJSONTyped(value?: NotificationWebhookMappingRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'expression': value['expression'], }; }