@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
42 lines • 981 B
JavaScript
"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