toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var color = this.color;
  var highlightColor = this.highlightColor;
  var hoverOrFocus = this.hoverOrFocus;

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