"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var node_paragraph_exports = {};
__export(node_paragraph_exports, {
  ParagraphData: () => ParagraphData
});
module.exports = __toCommonJS(node_paragraph_exports);
var import_common = require("./common.js");
const baseParagraphData = {};
const ParagraphData = {
  fromJSON(object) {
    const message = { ...baseParagraphData };
    message.textStyle = object.textStyle !== void 0 && object.textStyle !== null ? import_common.TextStyle.fromJSON(object.textStyle) : void 0;
    message.indentation = object.indentation !== void 0 && object.indentation !== null ? Number(object.indentation) : void 0;
    message.level = object.level !== void 0 && object.level !== null ? Number(object.level) : void 0;
    return message;
  },
  toJSON(message) {
    const obj = {};
    message.textStyle !== void 0 && (obj.textStyle = message.textStyle ? import_common.TextStyle.toJSON(message.textStyle) : void 0);
    message.indentation !== void 0 && (obj.indentation = message.indentation);
    message.level !== void 0 && (obj.level = message.level);
    return obj;
  }
};
//# sourceMappingURL=node_paragraph.js.map
