"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serializeDocGenTagsProcessingMessageV2025R0 = serializeDocGenTagsProcessingMessageV2025R0;
exports.deserializeDocGenTagsProcessingMessageV2025R0 = deserializeDocGenTagsProcessingMessageV2025R0;
const errors_1 = require("../../box/errors");
const json_1 = require("../../serialization/json");
const json_2 = require("../../serialization/json");
function serializeDocGenTagsProcessingMessageV2025R0(val) {
    return { ['message']: val.message };
}
function deserializeDocGenTagsProcessingMessageV2025R0(val) {
    if (!(0, json_2.sdIsMap)(val)) {
        throw new errors_1.BoxSdkError({
            message: 'Expecting a map for "DocGenTagsProcessingMessageV2025R0"',
        });
    }
    if (val.message == void 0) {
        throw new errors_1.BoxSdkError({
            message: 'Expecting "message" of type "DocGenTagsProcessingMessageV2025R0" to be defined',
        });
    }
    if (!(0, json_1.sdIsString)(val.message)) {
        throw new errors_1.BoxSdkError({
            message: 'Expecting string for "message" of type "DocGenTagsProcessingMessageV2025R0"',
        });
    }
    const message = val.message;
    return { message: message };
}
//# sourceMappingURL=docGenTagsProcessingMessageV2025R0.js.map