/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * 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'; /** * * @export * @interface WebhookNotification */ export interface WebhookNotification { /** * * @type {Set} * @memberof WebhookNotification */ stageIds?: Set; /** * * @type {string} * @memberof WebhookNotification */ webhookId?: string; } /** * Check if a given object implements the WebhookNotification interface. */ export function instanceOfWebhookNotification(value: object): value is WebhookNotification { return true; } export function WebhookNotificationFromJSON(json: any): WebhookNotification { return WebhookNotificationFromJSONTyped(json, false); } export function WebhookNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookNotification { if (json == null) { return json; } return { 'stageIds': json['stageIds'] == null ? undefined : new Set(json['stageIds']), 'webhookId': json['webhookId'] == null ? undefined : json['webhookId'], }; } export function WebhookNotificationToJSON(json: any): WebhookNotification { return WebhookNotificationToJSONTyped(json, false); } export function WebhookNotificationToJSONTyped(value?: WebhookNotification | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'stageIds': value['stageIds'] == null ? undefined : Array.from(value['stageIds'] as Set), 'webhookId': value['webhookId'], }; }