/* 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 UserNotification */ export interface UserNotification { /** * * @type {string} * @memberof UserNotification */ emailAddress?: string; /** * * @type {Set} * @memberof UserNotification */ stageIds?: Set; } /** * Check if a given object implements the UserNotification interface. */ export function instanceOfUserNotification(value: object): value is UserNotification { return true; } export function UserNotificationFromJSON(json: any): UserNotification { return UserNotificationFromJSONTyped(json, false); } export function UserNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserNotification { if (json == null) { return json; } return { 'emailAddress': json['emailAddress'] == null ? undefined : json['emailAddress'], 'stageIds': json['stageIds'] == null ? undefined : new Set(json['stageIds']), }; } export function UserNotificationToJSON(json: any): UserNotification { return UserNotificationToJSONTyped(json, false); } export function UserNotificationToJSONTyped(value?: UserNotification | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'emailAddress': value['emailAddress'], 'stageIds': value['stageIds'] == null ? undefined : Array.from(value['stageIds'] as Set), }; }