@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
29 lines • 723 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseExposeBuilder = void 0;
class BaseExposeBuilder {
contentKey;
culture;
segment;
withContentKey(contentKey) {
this.contentKey = contentKey;
return this;
}
withCulture(culture) {
this.culture = culture;
return this;
}
withSegment(segment) {
this.segment = segment;
return this;
}
getValue() {
return {
contentKey: this.contentKey,
culture: this.culture || null,
segment: this.segment || null,
};
}
}
exports.BaseExposeBuilder = BaseExposeBuilder;
//# sourceMappingURL=baseExposeBuilder.js.map