ComponentTreeNode.fromJson constructor

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

Implementation

ComponentTreeNode.fromJson(Map<String, dynamic> json)
  : this(
      json['id'] as int,
      json['name'] as String,
      json['toString'] as String,
      json['isPositionComponent'] as bool,
      (json['children'] as List)
          .map((e) => ComponentTreeNode.fromJson(e as Map<String, dynamic>))
          .toList(),
    );