DetachedElementInfo.fromJson constructor

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

Implementation

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