/* 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 RoleNotification */ export interface RoleNotification { /** * * @type {string} * @memberof RoleNotification */ roleId?: string; /** * * @type {string} * @memberof RoleNotification */ roleName?: string; /** * * @type {Set} * @memberof RoleNotification */ stageIds?: Set; } /** * Check if a given object implements the RoleNotification interface. */ export function instanceOfRoleNotification(value: object): value is RoleNotification { return true; } export function RoleNotificationFromJSON(json: any): RoleNotification { return RoleNotificationFromJSONTyped(json, false); } export function RoleNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleNotification { if (json == null) { return json; } return { 'roleId': json['roleId'] == null ? undefined : json['roleId'], 'roleName': json['roleName'] == null ? undefined : json['roleName'], 'stageIds': json['stageIds'] == null ? undefined : new Set(json['stageIds']), }; } export function RoleNotificationToJSON(json: any): RoleNotification { return RoleNotificationToJSONTyped(json, false); } export function RoleNotificationToJSONTyped(value?: RoleNotification | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'roleId': value['roleId'], 'roleName': value['roleName'], 'stageIds': value['stageIds'] == null ? undefined : Array.from(value['stageIds'] as Set), }; }