"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serializeEnterpriseConfigurationItemV2025R0 = serializeEnterpriseConfigurationItemV2025R0;
exports.deserializeEnterpriseConfigurationItemV2025R0 = deserializeEnterpriseConfigurationItemV2025R0;
const errors_1 = require("../../box/errors");
const json_1 = require("../../serialization/json");
const json_2 = require("../../serialization/json");
function serializeEnterpriseConfigurationItemV2025R0(val) {
    return { ['is_used']: val.isUsed };
}
function deserializeEnterpriseConfigurationItemV2025R0(val) {
    if (!(0, json_2.sdIsMap)(val)) {
        throw new errors_1.BoxSdkError({
            message: 'Expecting a map for "EnterpriseConfigurationItemV2025R0"',
        });
    }
    if (!(val.is_used == void 0) && !(0, json_1.sdIsBoolean)(val.is_used)) {
        throw new errors_1.BoxSdkError({
            message: 'Expecting boolean for "is_used" of type "EnterpriseConfigurationItemV2025R0"',
        });
    }
    const isUsed = val.is_used == void 0 ? void 0 : val.is_used;
    return { isUsed: isUsed };
}
//# sourceMappingURL=enterpriseConfigurationItemV2025R0.js.map