/* tslint:disable */
/* eslint-disable */
/**
 * OpenAPI Petstore
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * 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';
/**
 * 
 * @export
 * @interface InlineObject2
 */
export interface InlineObject2 {
    /**
     * Form parameter enum test (string array)
     * @type {Array<string>}
     * @memberof InlineObject2
     */
    enumFormStringArray?: Array<InlineObject2EnumFormStringArrayEnum>;
    /**
     * Form parameter enum test (string)
     * @type {string}
     * @memberof InlineObject2
     */
    enumFormString?: InlineObject2EnumFormStringEnum;
}

/**
* @export
* @enum {string}
*/
export enum InlineObject2EnumFormStringArrayEnum {
    GreaterThan = '>',
    Dollar = '$'
}/**
* @export
* @enum {string}
*/
export enum InlineObject2EnumFormStringEnum {
    Abc = '_abc',
    Efg = '-efg',
    Xyz = '(xyz)'
}

export function InlineObject2FromJSON(json: any): InlineObject2 {
    return InlineObject2FromJSONTyped(json, false);
}

export function InlineObject2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject2 {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'enumFormStringArray': !exists(json, 'enum_form_string_array') ? undefined : json['enum_form_string_array'],
        'enumFormString': !exists(json, 'enum_form_string') ? undefined : json['enum_form_string'],
    };
}

export function InlineObject2ToJSON(value?: InlineObject2 | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'enum_form_string_array': value.enumFormStringArray,
        'enum_form_string': value.enumFormString,
    };
}


