/* 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 Condition */ export interface Condition { /** * * @type {number} * @memberof Condition */ conditionIndex?: number; /** * * @type {string} * @memberof Condition */ conditionTypeId?: string; /** * * @type {string} * @memberof Condition */ operator?: string; /** * * @type {string} * @memberof Condition */ value?: string; } /** * Check if a given object implements the Condition interface. */ export function instanceOfCondition(value: object): value is Condition { return true; } export function ConditionFromJSON(json: any): Condition { return ConditionFromJSONTyped(json, false); } export function ConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Condition { if (json == null) { return json; } return { 'conditionIndex': json['conditionIndex'] == null ? undefined : json['conditionIndex'], 'conditionTypeId': json['conditionTypeId'] == null ? undefined : json['conditionTypeId'], 'operator': json['operator'] == null ? undefined : json['operator'], 'value': json['value'] == null ? undefined : json['value'], }; } export function ConditionToJSON(json: any): Condition { return ConditionToJSONTyped(json, false); } export function ConditionToJSONTyped(value?: Condition | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'conditionIndex': value['conditionIndex'], 'conditionTypeId': value['conditionTypeId'], 'operator': value['operator'], 'value': value['value'], }; }