/* 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 SCMUserMappingsDTO */ export interface SCMUserMappingsDTO { /** * * @type {Array} * @memberof SCMUserMappingsDTO */ mappings?: Array; /** * * @type {string} * @memberof SCMUserMappingsDTO */ role?: string; } /** * Check if a given object implements the SCMUserMappingsDTO interface. */ export function instanceOfSCMUserMappingsDTO(value: object): value is SCMUserMappingsDTO { return true; } export function SCMUserMappingsDTOFromJSON(json: any): SCMUserMappingsDTO { return SCMUserMappingsDTOFromJSONTyped(json, false); } export function SCMUserMappingsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCMUserMappingsDTO { if (json == null) { return json; } return { 'mappings': json['mappings'] == null ? undefined : ((json['mappings'] as Array).map(UserMappingFromJSON)), 'role': json['role'] == null ? undefined : json['role'], }; } export function SCMUserMappingsDTOToJSON(json: any): SCMUserMappingsDTO { return SCMUserMappingsDTOToJSONTyped(json, false); } export function SCMUserMappingsDTOToJSONTyped(value?: SCMUserMappingsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'mappings': value['mappings'] == null ? undefined : ((value['mappings'] as Array).map(UserMappingToJSON)), 'role': value['role'], }; }