/* tslint:disable */
/* eslint-disable */
/**
 * Montelo
 * Documentation for the Montelo API.
 *
 * The version of the OpenAPI document: 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 ExperimentAnalyticsValueDto
 */
export interface ExperimentAnalyticsValueDto {
    /**
     * 
     * @type {string}
     * @memberof ExperimentAnalyticsValueDto
     */
    name: string;
    /**
     * 
     * @type {number}
     * @memberof ExperimentAnalyticsValueDto
     */
    value: number;
}

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

    return isInstance;
}

export function ExperimentAnalyticsValueDtoFromJSON(json: any): ExperimentAnalyticsValueDto {
    return ExperimentAnalyticsValueDtoFromJSONTyped(json, false);
}

export function ExperimentAnalyticsValueDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExperimentAnalyticsValueDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'name': json['name'],
        'value': json['value'],
    };
}

export function ExperimentAnalyticsValueDtoToJSON(value?: ExperimentAnalyticsValueDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'name': value.name,
        'value': value.value,
    };
}

