"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serializeUploadedPart = serializeUploadedPart;
exports.deserializeUploadedPart = deserializeUploadedPart;
const uploadPart_1 = require("./uploadPart");
const uploadPart_2 = require("./uploadPart");
const errors_1 = require("../box/errors");
const json_1 = require("../serialization/json");
function serializeUploadedPart(val) {
    return {
        ['part']: val.part == void 0 ? val.part : (0, uploadPart_1.serializeUploadPart)(val.part),
    };
}
function deserializeUploadedPart(val) {
    if (!(0, json_1.sdIsMap)(val)) {
        throw new errors_1.BoxSdkError({ message: 'Expecting a map for "UploadedPart"' });
    }
    const part = val.part == void 0 ? void 0 : (0, uploadPart_2.deserializeUploadPart)(val.part);
    return { part: part };
}
//# sourceMappingURL=uploadedPart.js.map