toJson method
Implementation
Map<String, dynamic> toJson() {
final accent = this.accent;
final accentForeground = this.accentForeground;
final danger = this.danger;
final dangerForeground = this.dangerForeground;
final dimension = this.dimension;
final dimensionForeground = this.dimensionForeground;
final measure = this.measure;
final measureForeground = this.measureForeground;
final primaryBackground = this.primaryBackground;
final primaryForeground = this.primaryForeground;
final secondaryBackground = this.secondaryBackground;
final secondaryForeground = this.secondaryForeground;
final success = this.success;
final successForeground = this.successForeground;
final warning = this.warning;
final warningForeground = this.warningForeground;
return {
if (accent != null) 'Accent': accent,
if (accentForeground != null) 'AccentForeground': accentForeground,
if (danger != null) 'Danger': danger,
if (dangerForeground != null) 'DangerForeground': dangerForeground,
if (dimension != null) 'Dimension': dimension,
if (dimensionForeground != null)
'DimensionForeground': dimensionForeground,
if (measure != null) 'Measure': measure,
if (measureForeground != null) 'MeasureForeground': measureForeground,
if (primaryBackground != null) 'PrimaryBackground': primaryBackground,
if (primaryForeground != null) 'PrimaryForeground': primaryForeground,
if (secondaryBackground != null)
'SecondaryBackground': secondaryBackground,
if (secondaryForeground != null)
'SecondaryForeground': secondaryForeground,
if (success != null) 'Success': success,
if (successForeground != null) 'SuccessForeground': successForeground,
if (warning != null) 'Warning': warning,
if (warningForeground != null) 'WarningForeground': warningForeground,
};
}