TreeViewController<T>.fromJson constructor

TreeViewController<T>.fromJson(
  1. Map<String, dynamic> json
)

A necessary factory constructor for creating a new Node instance from a map. Pass the map to the generated _$TreeViewControllerFromJson() constructor. The constructor is named after the source class, in this case, Node.

Implementation

factory TreeViewController.fromJson(Map<String, dynamic> json) =>
    _$TreeViewControllerFromJson(json);