package com.example.smart.ui.projectevent.bean; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * @description: 问题树 */ public class SystemTreeBean extends ChildTreeBean implements Serializable { @SerializedName("id") private String id; @SerializedName("childIdCnt") private int childIdCnt; @SerializedName("name") private String name; @SerializedName("path") private String path; @SerializedName("children") private Map children; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getChildIdCnt() { return childIdCnt; } public void setChildIdCnt(int childIdCnt) { this.childIdCnt = childIdCnt; } public String getPath() { return path; } public void setPath(String path) { this.path = path; } public ArrayList childList = new ArrayList<>(); //转一次 数据结构 public ArrayList getChildren() { if (childList.isEmpty()) { childList.addAll(children.values()); } return childList; } public void setChildren(Map children) { this.children = children; } }