toJson method

Map<String, Object?> toJson()

JSON-like representation for debug UIs.

Implementation

Map<String, Object?> toJson() {
  return <String, Object?>{
    'maxConcurrentRuntimeLoads': maxConcurrentRuntimeLoads,
    'maxQueuedRuntimeLoads': maxQueuedRuntimeLoads,
    'activeRuntimeLoads': activeRuntimeLoads,
    'queueDepth': queueDepth,
    'inflightRequests': inflightRequests,
    'listeners': listeners,
    'totalQueued': totalQueued,
    'totalStarted': totalStarted,
    'totalCoalesced': totalCoalesced,
    'totalCompleted': totalCompleted,
    'totalFailed': totalFailed,
    'totalCancelled': totalCancelled,
    'totalBackpressureDropped': totalBackpressureDropped,
    'runtimeProgressEvents': runtimeProgressEvents,
    'runtimeProgressEventsDropped': runtimeProgressEventsDropped,
    'observerEventsDroppedBySampling': observerEventsDroppedBySampling,
    'dartToRuntimeInputCopies': dartToRuntimeInputCopies,
    'dartToRuntimeInputBytesCopied': dartToRuntimeInputBytesCopied,
  };
}