UNPKG

@umbraco/json-models-builders

Version:
42 lines 981 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MemberValueBuilder = void 0; class MemberValueBuilder { 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.MemberValueBuilder = MemberValueBuilder; //# sourceMappingURL=memberValueBuilder.js.map