/* 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 AdditionalPropertiesClass
 */
export interface AdditionalPropertiesClass {
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof AdditionalPropertiesClass
     */
    mapProperty?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: { [key: string]: string; }; }}
     * @memberof AdditionalPropertiesClass
     */
    mapOfMapProperty?: { [key: string]: { [key: string]: string; }; };
}

/**
 * Check if a given object implements the AdditionalPropertiesClass interface.
 */
export function instanceOfAdditionalPropertiesClass(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function AdditionalPropertiesClassFromJSON(json: any): AdditionalPropertiesClass {
    return AdditionalPropertiesClassFromJSONTyped(json, false);
}

export function AdditionalPropertiesClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdditionalPropertiesClass {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'mapProperty': !exists(json, 'map_property') ? undefined : json['map_property'],
        'mapOfMapProperty': !exists(json, 'map_of_map_property') ? undefined : json['map_of_map_property'],
    };
}

export function AdditionalPropertiesClassToJSON(value?: AdditionalPropertiesClass | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'map_property': value.mapProperty,
        'map_of_map_property': value.mapOfMapProperty,
    };
}

