toJson method
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
"visible": visible,
"backgroundColor": backgroundColor.toString(),
"foregroundColor": foregroundColor.toString(),
"activeBackgroundColor": activeBackgroundColor.toString(),
"activeForegroundColor": activeForegroundColor.toString(),
};