toJson method
Implementation
Map<String, Object?> toJson() {
var color = this.color;
var highlightColor = this.highlightColor;
var hoverOrFocus = this.hoverOrFocus;
final json = <String, Object?>{};
if (color != null) {
json[r'color'] = color;
}
json[r'highlightColor'] = highlightColor;
if (hoverOrFocus != null) {
json[r'hoverOrFocus'] = hoverOrFocus.toJson();
}
return json;
}