toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'modes': modes,
  'activeMode': activeMode,
  'colors': [for (final c in colors) c.toJson()],
  'textStyles': [for (final t in textStyles) t.toJson()],
  'shadows': [for (final s in shadows) s.toJson()],
  'components': [for (final c in components) c.toJson()],
};