/* 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 { EnumDestinationType, EnumDestinationTypeFromJSON, EnumDestinationTypeFromJSONTyped, EnumDestinationTypeToJSON, LocalDestinationAllOf, LocalDestinationAllOfFromJSON, LocalDestinationAllOfFromJSONTyped, LocalDestinationAllOfToJSON, ReqBaseDestination, ReqBaseDestinationFromJSON, ReqBaseDestinationFromJSONTyped, ReqBaseDestinationToJSON, } from './'; /** * * @export * @interface ReqLocalDestination */ export interface ReqLocalDestination { /** * * @type {EnumDestinationType} * @memberof ReqLocalDestination */ type: EnumDestinationType; /** * * @type {string} * @memberof ReqLocalDestination */ filename?: string; } export function ReqLocalDestinationFromJSON(json: any): ReqLocalDestination { return ReqLocalDestinationFromJSONTyped(json, false); } export function ReqLocalDestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqLocalDestination { if ((json === undefined) || (json === null)) { return json; } return { 'type': EnumDestinationTypeFromJSON(json['type']), 'filename': !exists(json, 'filename') ? undefined : json['filename'], }; } export function ReqLocalDestinationToJSON(value?: ReqLocalDestination | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'type': EnumDestinationTypeToJSON(value.type), 'filename': value.filename, }; }