DNodeEntity.fromJson constructor

DNodeEntity.fromJson(
  1. Map json
)

Implementation

DNodeEntity.fromJson(Map json) {
  if (json["nodes"] != null) {
    final List<DNode> list = <DNode>[];
    (json["nodes"] as List).forEach((element) {
      list.add(DNode.fromJson(element));
    });
    nodeList = list;
    action = json["action"] ?? "";
    animated = json["animated"] ?? true;
  }
}