toWire method
Wire payload for the backend.
Implementation
Map<String, dynamic> toWire() => {
'type': 'ui_snapshot',
'screen': screen,
'captured_at': capturedAt.toIso8601String(),
'viewport': [viewportSize.width, viewportSize.height],
'nodes': [for (final n in nodes) n.toWire()],
'paths': paths,
'visible': visibleIndex,
};