"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.LogsDtoToJSON = exports.LogsDtoFromJSONTyped = exports.LogsDtoFromJSON = exports.instanceOfLogsDto = void 0;
const LogDto_1 = require("./LogDto");
/**
 * Check if a given object implements the LogsDto interface.
 */
function instanceOfLogsDto(value) {
    let isInstance = true;
    isInstance = isInstance && "logs" in value;
    isInstance = isInstance && "totalCount" in value;
    return isInstance;
}
exports.instanceOfLogsDto = instanceOfLogsDto;
function LogsDtoFromJSON(json) {
    return LogsDtoFromJSONTyped(json, false);
}
exports.LogsDtoFromJSON = LogsDtoFromJSON;
function LogsDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'logs': (json['logs'].map(LogDto_1.LogDtoFromJSON)),
        'totalCount': json['totalCount'],
    };
}
exports.LogsDtoFromJSONTyped = LogsDtoFromJSONTyped;
function LogsDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'logs': (value.logs.map(LogDto_1.LogDtoToJSON)),
        'totalCount': value.totalCount,
    };
}
exports.LogsDtoToJSON = LogsDtoToJSON;
