"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChangesDtoToJSON = exports.ChangesDtoFromJSONTyped = exports.ChangesDtoFromJSON = exports.instanceOfChangesDto = void 0;
/**
 * Check if a given object implements the ChangesDto interface.
 */
function instanceOfChangesDto(value) {
    let isInstance = true;
    isInstance = isInstance && "cost" in value;
    isInstance = isInstance && "latency" in value;
    isInstance = isInstance && "traces" in value;
    return isInstance;
}
exports.instanceOfChangesDto = instanceOfChangesDto;
function ChangesDtoFromJSON(json) {
    return ChangesDtoFromJSONTyped(json, false);
}
exports.ChangesDtoFromJSON = ChangesDtoFromJSON;
function ChangesDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'cost': json['cost'],
        'latency': json['latency'],
        'traces': json['traces'],
    };
}
exports.ChangesDtoFromJSONTyped = ChangesDtoFromJSONTyped;
function ChangesDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'cost': value.cost,
        'latency': value.latency,
        'traces': value.traces,
    };
}
exports.ChangesDtoToJSON = ChangesDtoToJSON;
