/* 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 JiraNotification */ export interface JiraNotification { /** * * @type {number} * @memberof JiraNotification */ issueTypeId?: number; /** * * @type {string} * @memberof JiraNotification */ projectKey?: string; /** * * @type {Set} * @memberof JiraNotification */ stageIds?: Set; } /** * Check if a given object implements the JiraNotification interface. */ export function instanceOfJiraNotification(value: object): value is JiraNotification { return true; } export function JiraNotificationFromJSON(json: any): JiraNotification { return JiraNotificationFromJSONTyped(json, false); } export function JiraNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): JiraNotification { if (json == null) { return json; } return { 'issueTypeId': json['issueTypeId'] == null ? undefined : json['issueTypeId'], 'projectKey': json['projectKey'] == null ? undefined : json['projectKey'], 'stageIds': json['stageIds'] == null ? undefined : new Set(json['stageIds']), }; } export function JiraNotificationToJSON(json: any): JiraNotification { return JiraNotificationToJSONTyped(json, false); } export function JiraNotificationToJSONTyped(value?: JiraNotification | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'issueTypeId': value['issueTypeId'], 'projectKey': value['projectKey'], 'stageIds': value['stageIds'] == null ? undefined : Array.from(value['stageIds'] as Set), }; }