toJsonHelper static method

Map<String, dynamic>? toJsonHelper(
  1. KnowledgePanels? knowledgePanels
)

Implementation

static Map<String, dynamic>? toJsonHelper(
    final KnowledgePanels? knowledgePanels) {
  final Map<String, dynamic> result = {};
  if (knowledgePanels == null) {
    return null;
  }
  for (final MapEntry<String, KnowledgePanel> entry
      in knowledgePanels.panelIdToPanelMap.entries) {
    result[entry.key] = entry.value.toJson();
  }
  return result;
}