@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
32 lines • 847 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DocumentTypeAllowedDocumentTypeBuilder = void 0;
class DocumentTypeAllowedDocumentTypeBuilder {
parentBuilder;
id;
sortOrder;
constructor(parentBuilder) {
this.parentBuilder = parentBuilder;
}
withId(id) {
this.id = id;
return this;
}
withSortOrder(sortOrder) {
this.sortOrder = sortOrder;
return this;
}
done() {
return this.parentBuilder;
}
build() {
return {
documentType: {
id: this.id || null
},
sortOrder: this.sortOrder || 0
};
}
}
exports.DocumentTypeAllowedDocumentTypeBuilder = DocumentTypeAllowedDocumentTypeBuilder;
//# sourceMappingURL=documentTypeAllowedDocumentTypeBuilder.js.map