/* 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 type { OuterEnumInteger } from './OuterEnumInteger';
import {
    OuterEnumIntegerFromJSON,
    OuterEnumIntegerFromJSONTyped,
    OuterEnumIntegerToJSON,
} from './OuterEnumInteger';

/**
 * 
 * @export
 * @interface OuterObjectWithEnumProperty
 */
export interface OuterObjectWithEnumProperty {
    /**
     * 
     * @type {OuterEnumInteger}
     * @memberof OuterObjectWithEnumProperty
     */
    value: OuterEnumInteger;
}

/**
 * Check if a given object implements the OuterObjectWithEnumProperty interface.
 */
export function instanceOfOuterObjectWithEnumProperty(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "value" in value;

    return isInstance;
}

export function OuterObjectWithEnumPropertyFromJSON(json: any): OuterObjectWithEnumProperty {
    return OuterObjectWithEnumPropertyFromJSONTyped(json, false);
}

export function OuterObjectWithEnumPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): OuterObjectWithEnumProperty {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'value': OuterEnumIntegerFromJSON(json['value']),
    };
}

export function OuterObjectWithEnumPropertyToJSON(value?: OuterObjectWithEnumProperty | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'value': OuterEnumIntegerToJSON(value.value),
    };
}

