toJson method
Implementation
Map<String, dynamic> toJson() => {
'size': {'width': size.width, 'height': size.height},
'totalPaintMicros': totalPaintDuration.inMicroseconds,
'layerCount': layerCount,
'cacheHits': cacheHits,
'cacheMisses': cacheMisses,
'skippedPictureCacheWrites': skippedPictureCacheWrites,
'livePaints': livePaints,
'dirtyLayers': dirtyLayers,
'sizeChangedLayers': sizeChangedLayers,
'layers': layers.map((l) => l.toJson()).toList(),
};