/* 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 { TriggerReference } from './TriggerReference'; import { TriggerReferenceFromJSON, TriggerReferenceFromJSONTyped, TriggerReferenceToJSON, TriggerReferenceToJSONTyped, } from './TriggerReference'; /** * * @export * @interface ConditionFact */ export interface ConditionFact { /** * * @type {number} * @memberof ConditionFact */ conditionIndex?: number; /** * * @type {string} * @memberof ConditionFact */ conditionTypeId?: string; /** * * @type {string} * @memberof ConditionFact */ reason?: string; /** * * @type {TriggerReference} * @memberof ConditionFact */ reference?: TriggerReference; /** * * @type {string} * @memberof ConditionFact */ summary?: string; /** * * @type {string} * @memberof ConditionFact */ triggerJson?: string; } /** * Check if a given object implements the ConditionFact interface. */ export function instanceOfConditionFact(value: object): value is ConditionFact { return true; } export function ConditionFactFromJSON(json: any): ConditionFact { return ConditionFactFromJSONTyped(json, false); } export function ConditionFactFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConditionFact { if (json == null) { return json; } return { 'conditionIndex': json['conditionIndex'] == null ? undefined : json['conditionIndex'], 'conditionTypeId': json['conditionTypeId'] == null ? undefined : json['conditionTypeId'], 'reason': json['reason'] == null ? undefined : json['reason'], 'reference': json['reference'] == null ? undefined : TriggerReferenceFromJSON(json['reference']), 'summary': json['summary'] == null ? undefined : json['summary'], 'triggerJson': json['triggerJson'] == null ? undefined : json['triggerJson'], }; } export function ConditionFactToJSON(json: any): ConditionFact { return ConditionFactToJSONTyped(json, false); } export function ConditionFactToJSONTyped(value?: ConditionFact | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'conditionIndex': value['conditionIndex'], 'conditionTypeId': value['conditionTypeId'], 'reason': value['reason'], 'reference': TriggerReferenceToJSON(value['reference']), 'summary': value['summary'], 'triggerJson': value['triggerJson'], }; }