/* 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 { ComponentDisplayName } from './ComponentDisplayName'; import { ComponentDisplayNameFromJSON, ComponentDisplayNameFromJSONTyped, ComponentDisplayNameToJSON, ComponentDisplayNameToJSONTyped, } from './ComponentDisplayName'; import type { ComponentIdentifier } from './ComponentIdentifier'; import { ComponentIdentifierFromJSON, ComponentIdentifierFromJSONTyped, ComponentIdentifierToJSON, ComponentIdentifierToJSONTyped, } from './ComponentIdentifier'; import type { ConstraintFact } from './ConstraintFact'; import { ConstraintFactFromJSON, ConstraintFactFromJSONTyped, ConstraintFactToJSON, ConstraintFactToJSONTyped, } from './ConstraintFact'; /** * * @export * @interface ComponentFact */ export interface ComponentFact { /** * * @type {ComponentIdentifier} * @memberof ComponentFact */ componentIdentifier?: ComponentIdentifier; /** * * @type {Array} * @memberof ComponentFact */ constraintFacts?: Array; /** * * @type {ComponentDisplayName} * @memberof ComponentFact */ displayName?: ComponentDisplayName; /** * * @type {string} * @memberof ComponentFact */ hash?: string; /** * * @type {Array} * @memberof ComponentFact */ pathnames?: Array; } /** * Check if a given object implements the ComponentFact interface. */ export function instanceOfComponentFact(value: object): value is ComponentFact { return true; } export function ComponentFactFromJSON(json: any): ComponentFact { return ComponentFactFromJSONTyped(json, false); } export function ComponentFactFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentFact { if (json == null) { return json; } return { 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ComponentIdentifierFromJSON(json['componentIdentifier']), 'constraintFacts': json['constraintFacts'] == null ? undefined : ((json['constraintFacts'] as Array).map(ConstraintFactFromJSON)), 'displayName': json['displayName'] == null ? undefined : ComponentDisplayNameFromJSON(json['displayName']), 'hash': json['hash'] == null ? undefined : json['hash'], 'pathnames': json['pathnames'] == null ? undefined : json['pathnames'], }; } export function ComponentFactToJSON(json: any): ComponentFact { return ComponentFactToJSONTyped(json, false); } export function ComponentFactToJSONTyped(value?: ComponentFact | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentIdentifier': ComponentIdentifierToJSON(value['componentIdentifier']), 'constraintFacts': value['constraintFacts'] == null ? undefined : ((value['constraintFacts'] as Array).map(ConstraintFactToJSON)), 'displayName': ComponentDisplayNameToJSON(value['displayName']), 'hash': value['hash'], 'pathnames': value['pathnames'], }; }