/* tslint:disable */ /* eslint-disable */ /** * Tapis Workflows API * Create and manage pipelines * * The version of the OpenAPI document: 1.6.0 * Contact: cicsupport@tacc.utexas.edu * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { Spec, SpecFromJSON, SpecFromJSONTyped, SpecToJSON, SpecWithValueAllOf, SpecWithValueAllOfFromJSON, SpecWithValueAllOfFromJSONTyped, SpecWithValueAllOfToJSON, Value, ValueFromJSON, ValueFromJSONTyped, ValueToJSON, ValueFrom, ValueFromFromJSON, ValueFromFromJSONTyped, ValueFromToJSON, } from './'; /** * * @export * @interface SpecWithValue */ export interface SpecWithValue { /** * * @type {string} * @memberof SpecWithValue */ description?: string; /** * * @type {boolean} * @memberof SpecWithValue */ required?: boolean; /** * * @type {string} * @memberof SpecWithValue */ type?: string; /** * * @type {Value} * @memberof SpecWithValue */ value?: Value; /** * * @type {ValueFrom} * @memberof SpecWithValue */ value_from?: ValueFrom; } export function SpecWithValueFromJSON(json: any): SpecWithValue { return SpecWithValueFromJSONTyped(json, false); } export function SpecWithValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpecWithValue { if ((json === undefined) || (json === null)) { return json; } return { 'description': !exists(json, 'description') ? undefined : json['description'], 'required': !exists(json, 'required') ? undefined : json['required'], 'type': !exists(json, 'type') ? undefined : json['type'], 'value': !exists(json, 'value') ? undefined : ValueFromJSON(json['value']), 'value_from': !exists(json, 'value_from') ? undefined : ValueFromFromJSON(json['value_from']), }; } export function SpecWithValueToJSON(value?: SpecWithValue | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'description': value.description, 'required': value.required, 'type': value.type, 'value': ValueToJSON(value.value), 'value_from': ValueFromToJSON(value.value_from), }; }