UNPKG

@umbraco/json-models-builders

Version:
41 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseContentDataValueBuilder = void 0; class BaseContentDataValueBuilder { alias; culture; editorAlias; segment; value; withAlias(alias) { this.alias = alias; return this; } withCulture(culture) { this.culture = culture; return this; } withEditorAlias(editorAlias) { this.editorAlias = editorAlias; return this; } withSegment(segment) { this.segment = segment; return this; } withValue(value) { this.value = value; return this; } getValue() { return { alias: this.alias, culture: this.culture || null, editorAlias: this.editorAlias, segment: this.segment || null, value: this.value || "" }; } } exports.BaseContentDataValueBuilder = BaseContentDataValueBuilder; //# sourceMappingURL=baseContentDataValueBuilder.js.map