"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.TracesWithCountDtoToJSON = exports.TracesWithCountDtoFromJSONTyped = exports.TracesWithCountDtoFromJSON = exports.instanceOfTracesWithCountDto = void 0;
const TraceWithLogsDto_1 = require("./TraceWithLogsDto");
/**
 * Check if a given object implements the TracesWithCountDto interface.
 */
function instanceOfTracesWithCountDto(value) {
    let isInstance = true;
    isInstance = isInstance && "traces" in value;
    isInstance = isInstance && "totalCount" in value;
    return isInstance;
}
exports.instanceOfTracesWithCountDto = instanceOfTracesWithCountDto;
function TracesWithCountDtoFromJSON(json) {
    return TracesWithCountDtoFromJSONTyped(json, false);
}
exports.TracesWithCountDtoFromJSON = TracesWithCountDtoFromJSON;
function TracesWithCountDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'traces': (json['traces'].map(TraceWithLogsDto_1.TraceWithLogsDtoFromJSON)),
        'totalCount': json['totalCount'],
    };
}
exports.TracesWithCountDtoFromJSONTyped = TracesWithCountDtoFromJSONTyped;
function TracesWithCountDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'traces': (value.traces.map(TraceWithLogsDto_1.TraceWithLogsDtoToJSON)),
        'totalCount': value.totalCount,
    };
}
exports.TracesWithCountDtoToJSON = TracesWithCountDtoToJSON;
