toJson method

Map<String, Object?> toJson()

Encodes this Widget tree as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'profile': profile.jsonValue,
  'total': total,
  'visible': visible,
  'emitted': emitted,
  'truncated': truncated,
  if (under != null) 'under': under!.toJson(),
  if (depth != null) 'depth': depth,
  'nodes': nodes.map((node) => node.toJson()).toList(growable: false),
};