KnowledgePanels.fromJson constructor

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

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);
}