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