/* 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 { ComponentFact } from './ComponentFact'; import { ComponentFactFromJSON, ComponentFactFromJSONTyped, ComponentFactToJSON, ComponentFactToJSONTyped, } from './ComponentFact'; /** * * @export * @interface PolicyFact */ export interface PolicyFact { /** * * @type {Array} * @memberof PolicyFact */ componentFacts?: Array; /** * * @type {string} * @memberof PolicyFact */ policyId?: string; /** * * @type {string} * @memberof PolicyFact */ policyName?: string; /** * * @type {string} * @memberof PolicyFact */ policyViolationId?: string; /** * * @type {number} * @memberof PolicyFact */ threatLevel?: number; } /** * Check if a given object implements the PolicyFact interface. */ export function instanceOfPolicyFact(value: object): value is PolicyFact { return true; } export function PolicyFactFromJSON(json: any): PolicyFact { return PolicyFactFromJSONTyped(json, false); } export function PolicyFactFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyFact { if (json == null) { return json; } return { 'componentFacts': json['componentFacts'] == null ? undefined : ((json['componentFacts'] as Array).map(ComponentFactFromJSON)), 'policyId': json['policyId'] == null ? undefined : json['policyId'], 'policyName': json['policyName'] == null ? undefined : json['policyName'], 'policyViolationId': json['policyViolationId'] == null ? undefined : json['policyViolationId'], 'threatLevel': json['threatLevel'] == null ? undefined : json['threatLevel'], }; } export function PolicyFactToJSON(json: any): PolicyFact { return PolicyFactToJSONTyped(json, false); } export function PolicyFactToJSONTyped(value?: PolicyFact | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentFacts': value['componentFacts'] == null ? undefined : ((value['componentFacts'] as Array).map(ComponentFactToJSON)), 'policyId': value['policyId'], 'policyName': value['policyName'], 'policyViolationId': value['policyViolationId'], 'threatLevel': value['threatLevel'], }; }