/* 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 { UserMapping } from './UserMapping'; import { UserMappingFromJSON, UserMappingFromJSONTyped, UserMappingToJSON, UserMappingToJSONTyped, } from './UserMapping'; /** * * @export * @interface SCMUserMatchingResultDTO */ export interface SCMUserMatchingResultDTO { /** * * @type {Set} * @memberof SCMUserMatchingResultDTO */ matchedUsers?: Set; /** * * @type {UserMapping} * @memberof SCMUserMatchingResultDTO */ successfulMapping?: UserMapping; } /** * Check if a given object implements the SCMUserMatchingResultDTO interface. */ export function instanceOfSCMUserMatchingResultDTO(value: object): value is SCMUserMatchingResultDTO { return true; } export function SCMUserMatchingResultDTOFromJSON(json: any): SCMUserMatchingResultDTO { return SCMUserMatchingResultDTOFromJSONTyped(json, false); } export function SCMUserMatchingResultDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCMUserMatchingResultDTO { if (json == null) { return json; } return { 'matchedUsers': json['matchedUsers'] == null ? undefined : new Set(json['matchedUsers']), 'successfulMapping': json['successfulMapping'] == null ? undefined : UserMappingFromJSON(json['successfulMapping']), }; } export function SCMUserMatchingResultDTOToJSON(json: any): SCMUserMatchingResultDTO { return SCMUserMatchingResultDTOToJSONTyped(json, false); } export function SCMUserMatchingResultDTOToJSONTyped(value?: SCMUserMatchingResultDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'matchedUsers': value['matchedUsers'] == null ? undefined : Array.from(value['matchedUsers'] as Set), 'successfulMapping': UserMappingToJSON(value['successfulMapping']), }; }