/* 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 ComponentDisplayNamePart */ export interface ComponentDisplayNamePart { /** * * @type {string} * @memberof ComponentDisplayNamePart */ field?: string; /** * * @type {string} * @memberof ComponentDisplayNamePart */ value?: string; } /** * Check if a given object implements the ComponentDisplayNamePart interface. */ export function instanceOfComponentDisplayNamePart(value: object): value is ComponentDisplayNamePart { return true; } export function ComponentDisplayNamePartFromJSON(json: any): ComponentDisplayNamePart { return ComponentDisplayNamePartFromJSONTyped(json, false); } export function ComponentDisplayNamePartFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentDisplayNamePart { if (json == null) { return json; } return { 'field': json['field'] == null ? undefined : json['field'], 'value': json['value'] == null ? undefined : json['value'], }; } export function ComponentDisplayNamePartToJSON(json: any): ComponentDisplayNamePart { return ComponentDisplayNamePartToJSONTyped(json, false); } export function ComponentDisplayNamePartToJSONTyped(value?: ComponentDisplayNamePart | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'field': value['field'], 'value': value['value'], }; }