"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.FullDatasetWithCountDtoToJSON = exports.FullDatasetWithCountDtoFromJSONTyped = exports.FullDatasetWithCountDtoFromJSON = exports.instanceOfFullDatasetWithCountDto = void 0;
const FullDatasetDto_1 = require("./FullDatasetDto");
/**
 * Check if a given object implements the FullDatasetWithCountDto interface.
 */
function instanceOfFullDatasetWithCountDto(value) {
    let isInstance = true;
    isInstance = isInstance && "dataset" in value;
    isInstance = isInstance && "totalCount" in value;
    return isInstance;
}
exports.instanceOfFullDatasetWithCountDto = instanceOfFullDatasetWithCountDto;
function FullDatasetWithCountDtoFromJSON(json) {
    return FullDatasetWithCountDtoFromJSONTyped(json, false);
}
exports.FullDatasetWithCountDtoFromJSON = FullDatasetWithCountDtoFromJSON;
function FullDatasetWithCountDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'dataset': (0, FullDatasetDto_1.FullDatasetDtoFromJSON)(json['dataset']),
        'totalCount': json['totalCount'],
    };
}
exports.FullDatasetWithCountDtoFromJSONTyped = FullDatasetWithCountDtoFromJSONTyped;
function FullDatasetWithCountDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'dataset': (0, FullDatasetDto_1.FullDatasetDtoToJSON)(value.dataset),
        'totalCount': value.totalCount,
    };
}
exports.FullDatasetWithCountDtoToJSON = FullDatasetWithCountDtoToJSON;
