UNPKG

@umbraco/json-models-builders

Version:
42 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DocumentBlueprintsValueBuilder = void 0; class DocumentBlueprintsValueBuilder { parentBuilder; culture; segment; alias; value; constructor(parentBuilder) { this.parentBuilder = parentBuilder; } withCulture(culture) { this.culture = culture; return this; } withSegment(segment) { this.segment = segment; return this; } withAlias(alias) { this.alias = alias; return this; } withValue(value) { this.value = value; return this; } done() { return this.parentBuilder; } build() { return { culture: this.culture || null, segment: this.segment || null, alias: this.alias || null, value: this.value || null }; } } exports.DocumentBlueprintsValueBuilder = DocumentBlueprintsValueBuilder; //# sourceMappingURL=documentBlueprintsValueBuilder.js.map