// tslint:disable
/**
 * Swaggy Jenkins
 * Jenkins API clients generated from Swagger / Open API specification
 *
 * The version of the OpenAPI document: 1.1.2-pre.0
 * Contact: blah@cliffano.com
 *
 * 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 {
    StringParameterValue,
    StringParameterValueFromJSON,
    StringParameterValueToJSON,
} from './';

/**
 * 
 * @export
 * @interface StringParameterDefinition
 */
export interface StringParameterDefinition  {
    /**
     * 
     * @type {string}
     * @memberof StringParameterDefinition
     */
    _class?: string;
    /**
     * 
     * @type {StringParameterValue}
     * @memberof StringParameterDefinition
     */
    defaultParameterValue?: StringParameterValue;
    /**
     * 
     * @type {string}
     * @memberof StringParameterDefinition
     */
    description?: string;
    /**
     * 
     * @type {string}
     * @memberof StringParameterDefinition
     */
    name?: string;
    /**
     * 
     * @type {string}
     * @memberof StringParameterDefinition
     */
    type?: string;
}

export function StringParameterDefinitionFromJSON(json: any): StringParameterDefinition {
    return {
        '_class': !exists(json, '_class') ? undefined : json['_class'],
        'defaultParameterValue': !exists(json, 'defaultParameterValue') ? undefined : StringParameterValueFromJSON(json['defaultParameterValue']),
        'description': !exists(json, 'description') ? undefined : json['description'],
        'name': !exists(json, 'name') ? undefined : json['name'],
        'type': !exists(json, 'type') ? undefined : json['type'],
    };
}

export function StringParameterDefinitionToJSON(value?: StringParameterDefinition): any {
    if (value === undefined) 

    return {
        '_class': value._class,
        'defaultParameterValue': StringParameterValueToJSON(value.defaultParameterValue),
        'description': value.description,
        'name': value.name,
        'type': value.type,
    };
}



{
        return undefined;
    }