/* 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 { ConditionFact } from './ConditionFact'; import { ConditionFactFromJSON, ConditionFactFromJSONTyped, ConditionFactToJSON, ConditionFactToJSONTyped, } from './ConditionFact'; /** * * @export * @interface ConstraintFact */ export interface ConstraintFact { /** * * @type {Array} * @memberof ConstraintFact */ conditionFacts?: Array; /** * * @type {string} * @memberof ConstraintFact */ constraintId?: string; /** * * @type {string} * @memberof ConstraintFact */ constraintName?: string; /** * * @type {string} * @memberof ConstraintFact */ operatorName?: string; } /** * Check if a given object implements the ConstraintFact interface. */ export function instanceOfConstraintFact(value: object): value is ConstraintFact { return true; } export function ConstraintFactFromJSON(json: any): ConstraintFact { return ConstraintFactFromJSONTyped(json, false); } export function ConstraintFactFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConstraintFact { if (json == null) { return json; } return { 'conditionFacts': json['conditionFacts'] == null ? undefined : ((json['conditionFacts'] as Array).map(ConditionFactFromJSON)), 'constraintId': json['constraintId'] == null ? undefined : json['constraintId'], 'constraintName': json['constraintName'] == null ? undefined : json['constraintName'], 'operatorName': json['operatorName'] == null ? undefined : json['operatorName'], }; } export function ConstraintFactToJSON(json: any): ConstraintFact { return ConstraintFactToJSONTyped(json, false); } export function ConstraintFactToJSONTyped(value?: ConstraintFact | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'conditionFacts': value['conditionFacts'] == null ? undefined : ((value['conditionFacts'] as Array).map(ConditionFactToJSON)), 'constraintId': value['constraintId'], 'constraintName': value['constraintName'], 'operatorName': value['operatorName'], }; }