/* tslint:disable */
/* eslint-disable */
/**
 * starchart
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.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 Size
 */
export interface Size {
    /**
     * 
     * @type {any}
     * @memberof Size
     */
    largeItem: any | null;
    /**
     * 
     * @type {any}
     * @memberof Size
     */
    largeItemMultiplier: any | null;
    /**
     * 
     * @type {any}
     * @memberof Size
     */
    smallItem: any | null;
    /**
     * 
     * @type {any}
     * @memberof Size
     */
    smallItemMultiplier: any | null;
}

/**
 * Check if a given object implements the Size interface.
 */
export function instanceOfSize(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "largeItem" in value;
    isInstance = isInstance && "largeItemMultiplier" in value;
    isInstance = isInstance && "smallItem" in value;
    isInstance = isInstance && "smallItemMultiplier" in value;

    return isInstance;
}

export function SizeFromJSON(json: any): Size {
    return SizeFromJSONTyped(json, false);
}

export function SizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Size {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'largeItem': json['large_item'],
        'largeItemMultiplier': json['large_item_multiplier'],
        'smallItem': json['small_item'],
        'smallItemMultiplier': json['small_item_multiplier'],
    };
}

export function SizeToJSON(value?: Size | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'large_item': value.largeItem,
        'large_item_multiplier': value.largeItemMultiplier,
        'small_item': value.smallItem,
        'small_item_multiplier': value.smallItemMultiplier,
    };
}

