SetChildNodesEvent.fromJson constructor

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

Implementation

factory SetChildNodesEvent.fromJson(Map<String, dynamic> json) {
  return SetChildNodesEvent(
    parentId: NodeId.fromJson(json['parentId'] as int),
    nodes: (json['nodes'] as List)
        .map((e) => Node.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}