toJson method
Converts the theme to a JSON map for serialization to the native bridge.
Native bridges read theme.typography from this payload.
Implementation
Map<String, dynamic> toJson() => {
if (colors != null) 'colors': colors!.toJson(),
if (icons != null) 'icons': icons!.toJson(),
if (typography != null) 'typography': typography!.toJson(),
};