/* 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'; import type { RoleNotification } from './RoleNotification'; import { RoleNotificationFromJSON, RoleNotificationFromJSONTyped, RoleNotificationToJSON, RoleNotificationToJSONTyped, } from './RoleNotification'; import type { WebhookNotification } from './WebhookNotification'; import { WebhookNotificationFromJSON, WebhookNotificationFromJSONTyped, WebhookNotificationToJSON, WebhookNotificationToJSONTyped, } from './WebhookNotification'; import type { UserNotification } from './UserNotification'; import { UserNotificationFromJSON, UserNotificationFromJSONTyped, UserNotificationToJSON, UserNotificationToJSONTyped, } from './UserNotification'; import type { JiraNotification } from './JiraNotification'; import { JiraNotificationFromJSON, JiraNotificationFromJSONTyped, JiraNotificationToJSON, JiraNotificationToJSONTyped, } from './JiraNotification'; /** * * @export * @interface Notifications */ export interface Notifications { /** * * @type {Array} * @memberof Notifications */ jiraNotifications?: Array; /** * * @type {Array} * @memberof Notifications */ roleNotifications?: Array; /** * * @type {Array} * @memberof Notifications */ userNotifications?: Array; /** * * @type {Array} * @memberof Notifications */ webhookNotifications?: Array; } /** * Check if a given object implements the Notifications interface. */ export function instanceOfNotifications(value: object): value is Notifications { return true; } export function NotificationsFromJSON(json: any): Notifications { return NotificationsFromJSONTyped(json, false); } export function NotificationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notifications { if (json == null) { return json; } return { 'jiraNotifications': json['jiraNotifications'] == null ? undefined : ((json['jiraNotifications'] as Array).map(JiraNotificationFromJSON)), 'roleNotifications': json['roleNotifications'] == null ? undefined : ((json['roleNotifications'] as Array).map(RoleNotificationFromJSON)), 'userNotifications': json['userNotifications'] == null ? undefined : ((json['userNotifications'] as Array).map(UserNotificationFromJSON)), 'webhookNotifications': json['webhookNotifications'] == null ? undefined : ((json['webhookNotifications'] as Array).map(WebhookNotificationFromJSON)), }; } export function NotificationsToJSON(json: any): Notifications { return NotificationsToJSONTyped(json, false); } export function NotificationsToJSONTyped(value?: Notifications | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'jiraNotifications': value['jiraNotifications'] == null ? undefined : ((value['jiraNotifications'] as Array).map(JiraNotificationToJSON)), 'roleNotifications': value['roleNotifications'] == null ? undefined : ((value['roleNotifications'] as Array).map(RoleNotificationToJSON)), 'userNotifications': value['userNotifications'] == null ? undefined : ((value['userNotifications'] as Array).map(UserNotificationToJSON)), 'webhookNotifications': value['webhookNotifications'] == null ? undefined : ((value['webhookNotifications'] as Array).map(WebhookNotificationToJSON)), }; }