UNPKG

@shapediver/sdk.sdtf-v1

Version:
32 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SdtfPartialDataItem = void 0; const SdtfBasePartialComponent_1 = require("./SdtfBasePartialComponent"); class SdtfPartialDataItem extends SdtfBasePartialComponent_1.SdtfBasePartialComponent { constructor() { super(...arguments); this.additionalProperties = {}; } toJson() { const json = Object.assign({}, this.additionalProperties); if (this.accessor !== undefined) json.accessor = this.accessor; else delete json.accessor; if (this.attributes !== undefined) json.attributes = this.attributes; else delete json.attributes; if (this.typeHint !== undefined) json.typeHint = this.typeHint; else delete json.typeHint; if (this.value !== undefined) json.value = this.value; else delete json.value; return json; } } exports.SdtfPartialDataItem = SdtfPartialDataItem; //# sourceMappingURL=SdtfPartialDataItem.js.map