toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final colors = this.colors;
  final emptyFillColor = this.emptyFillColor;
  final minMaxGradient = this.minMaxGradient;
  return {
    if (colors != null) 'Colors': colors,
    if (emptyFillColor != null) 'EmptyFillColor': emptyFillColor,
    if (minMaxGradient != null) 'MinMaxGradient': minMaxGradient,
  };
}