toJson method
Generates the context JSON consumed by the external MCP server.
Contains screen, route, timestamp, and the list of widgets with capabilities.
This JSON is what Claude sees when it calls get_app_context.
Implementation
Map<String, dynamic> toJson({String? screen, String? route}) =>
_registry.toJson(screen: screen, route: route);