KnowledgePanels.fromJson constructor
Implementation
factory KnowledgePanels.fromJson(Map<String, dynamic> json) {
Map<String, KnowledgePanel> map = {};
for (var panelId in json.keys) {
map[panelId] = KnowledgePanel.fromJson(json[panelId]);
}
return KnowledgePanels(panelIdToPanelMap: map);
}