toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (labels != null) 'labels': labels!,
  if (nodeColor != null) 'nodeColor': nodeColor!,
  if (nodeColorStyle != null) 'nodeColorStyle': nodeColorStyle!,
  if (nodeSize != null) 'nodeSize': nodeSize!,
  if (parentLabels != null) 'parentLabels': parentLabels!,
  if (selectedNodeColor != null) 'selectedNodeColor': selectedNodeColor!,
  if (selectedNodeColorStyle != null)
    'selectedNodeColorStyle': selectedNodeColorStyle!,
  if (tooltips != null) 'tooltips': tooltips!,
};