/* 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 { ComponentDisplayNamePart } from './ComponentDisplayNamePart'; import { ComponentDisplayNamePartFromJSON, ComponentDisplayNamePartFromJSONTyped, ComponentDisplayNamePartToJSON, ComponentDisplayNamePartToJSONTyped, } from './ComponentDisplayNamePart'; /** * * @export * @interface ComponentDisplayName */ export interface ComponentDisplayName { /** * * @type {string} * @memberof ComponentDisplayName */ name?: string; /** * * @type {Array} * @memberof ComponentDisplayName */ parts?: Array; } /** * Check if a given object implements the ComponentDisplayName interface. */ export function instanceOfComponentDisplayName(value: object): value is ComponentDisplayName { return true; } export function ComponentDisplayNameFromJSON(json: any): ComponentDisplayName { return ComponentDisplayNameFromJSONTyped(json, false); } export function ComponentDisplayNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentDisplayName { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'parts': json['parts'] == null ? undefined : ((json['parts'] as Array).map(ComponentDisplayNamePartFromJSON)), }; } export function ComponentDisplayNameToJSON(json: any): ComponentDisplayName { return ComponentDisplayNameToJSONTyped(json, false); } export function ComponentDisplayNameToJSONTyped(value?: ComponentDisplayName | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'parts': value['parts'] == null ? undefined : ((value['parts'] as Array).map(ComponentDisplayNamePartToJSON)), }; }