toJson method

Map<String, dynamic> toJson()

Converts the theme to a JSON map for serialization to the native bridge.

Implementation

Map<String, dynamic> toJson() => {
      if (colors != null) 'colors': colors!.toJson(),
      if (icons != null) 'icons': icons!.toJson(),
    };