"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.CostHistoryDtoToJSON = exports.CostHistoryDtoFromJSONTyped = exports.CostHistoryDtoFromJSON = exports.instanceOfCostHistoryDto = void 0;
const CostHistory_1 = require("./CostHistory");
/**
 * Check if a given object implements the CostHistoryDto interface.
 */
function instanceOfCostHistoryDto(value) {
    let isInstance = true;
    isInstance = isInstance && "costHistory" in value;
    return isInstance;
}
exports.instanceOfCostHistoryDto = instanceOfCostHistoryDto;
function CostHistoryDtoFromJSON(json) {
    return CostHistoryDtoFromJSONTyped(json, false);
}
exports.CostHistoryDtoFromJSON = CostHistoryDtoFromJSON;
function CostHistoryDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'costHistory': (json['costHistory'].map(CostHistory_1.CostHistoryFromJSON)),
    };
}
exports.CostHistoryDtoFromJSONTyped = CostHistoryDtoFromJSONTyped;
function CostHistoryDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'costHistory': (value.costHistory.map(CostHistory_1.CostHistoryToJSON)),
    };
}
exports.CostHistoryDtoToJSON = CostHistoryDtoToJSON;
