renderTreeToJson function

Map<String, Object?> renderTreeToJson(
  1. RenderObjectData? data
)

Implementation

Map<String, Object?> renderTreeToJson(RenderObjectData? data) {
  if (data == null) {
    // Null is returned if no element has been marked for visualization.
    return {};
  }

  return data.toJson();
}