alexeyinkin commented on code in PR #23572:
URL: https://github.com/apache/beam/pull/23572#discussion_r992374189
##########
learning/tour-of-beam/frontend/lib/models/module.dart:
##########
@@ -16,28 +16,29 @@
* limitations under the License.
*/
-import 'package:json_annotation/json_annotation.dart';
import 'package:playground_components/playground_components.dart';
-import 'abstract_node.dart';
+import '../repositories/models/module.dart';
+import 'node.dart';
+import 'parent_node.dart';
-part 'module.g.dart';
-
-@JsonSerializable(createToJson: false)
-class ModuleModel {
- final String id;
- final String title;
+class ModuleModel extends ParentNodeModel {
Review Comment:
This allows to make the tree widgets agnostic of whether they work with
groups or modules, this is useful when handling clicks on any node.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]