/* 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';
import {
    Foo,
    FooFromJSON,
    FooFromJSONTyped,
    FooToJSON,
} from './Foo';

/**
 * 
 * @export
 * @interface InlineResponseDefault
 */
export interface InlineResponseDefault {
    /**
     * 
     * @type {Foo}
     * @memberof InlineResponseDefault
     */
    string?: Foo;
}

export function InlineResponseDefaultFromJSON(json: any): InlineResponseDefault {
    return InlineResponseDefaultFromJSONTyped(json, false);
}

export function InlineResponseDefaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponseDefault {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'string': !exists(json, 'string') ? undefined : FooFromJSON(json['string']),
    };
}

export function InlineResponseDefaultToJSON(value?: InlineResponseDefault | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'string': FooToJSON(value.string),
    };
}

