UNPKG

@umbraco/json-models-builders

Version:
49 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MemberTypeContainerBuilder = void 0; const BuilderUtils_1 = require("../../helpers/BuilderUtils"); class MemberTypeContainerBuilder { parentBuilder; id; parentId; name; type; sortOrder; constructor(parentBuilder) { this.parentBuilder = parentBuilder; } withId(id) { this.id = id; return this; } withParentId(parentId) { this.parentId = parentId; return this; } withName(name) { this.name = name; return this; } withType(type) { this.type = type; return this; } withSortOrder(sortOrder) { this.sortOrder = sortOrder; return this; } done() { return this.parentBuilder; } build() { return (0, BuilderUtils_1.buildContainer)({ id: this.id, parentId: this.parentId, name: this.name, type: this.type, sortOrder: this.sortOrder }); } } exports.MemberTypeContainerBuilder = MemberTypeContainerBuilder; //# sourceMappingURL=memberTypeContainerBuilder.js.map