UIColorPalette.fromJson constructor
UIColorPalette.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UIColorPalette.fromJson(Map<String, dynamic> json) {
return UIColorPalette(
accent: json['Accent'] as String?,
accentForeground: json['AccentForeground'] as String?,
danger: json['Danger'] as String?,
dangerForeground: json['DangerForeground'] as String?,
dimension: json['Dimension'] as String?,
dimensionForeground: json['DimensionForeground'] as String?,
measure: json['Measure'] as String?,
measureForeground: json['MeasureForeground'] as String?,
primaryBackground: json['PrimaryBackground'] as String?,
primaryForeground: json['PrimaryForeground'] as String?,
secondaryBackground: json['SecondaryBackground'] as String?,
secondaryForeground: json['SecondaryForeground'] as String?,
success: json['Success'] as String?,
successForeground: json['SuccessForeground'] as String?,
warning: json['Warning'] as String?,
warningForeground: json['WarningForeground'] as String?,
);
}