toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (altText != null) 'altText': altText!,
      if (backgroundColor != null) 'backgroundColor': backgroundColor!,
      if (backgroundColorStyle != null)
        'backgroundColorStyle': backgroundColorStyle!,
      if (basicChart != null) 'basicChart': basicChart!,
      if (bubbleChart != null) 'bubbleChart': bubbleChart!,
      if (candlestickChart != null) 'candlestickChart': candlestickChart!,
      if (dataSourceChartProperties != null)
        'dataSourceChartProperties': dataSourceChartProperties!,
      if (filterSpecs != null) 'filterSpecs': filterSpecs!,
      if (fontName != null) 'fontName': fontName!,
      if (hiddenDimensionStrategy != null)
        'hiddenDimensionStrategy': hiddenDimensionStrategy!,
      if (histogramChart != null) 'histogramChart': histogramChart!,
      if (maximized != null) 'maximized': maximized!,
      if (orgChart != null) 'orgChart': orgChart!,
      if (pieChart != null) 'pieChart': pieChart!,
      if (scorecardChart != null) 'scorecardChart': scorecardChart!,
      if (sortSpecs != null) 'sortSpecs': sortSpecs!,
      if (subtitle != null) 'subtitle': subtitle!,
      if (subtitleTextFormat != null)
        'subtitleTextFormat': subtitleTextFormat!,
      if (subtitleTextPosition != null)
        'subtitleTextPosition': subtitleTextPosition!,
      if (title != null) 'title': title!,
      if (titleTextFormat != null) 'titleTextFormat': titleTextFormat!,
      if (titleTextPosition != null) 'titleTextPosition': titleTextPosition!,
      if (treemapChart != null) 'treemapChart': treemapChart!,
      if (waterfallChart != null) 'waterfallChart': waterfallChart!,
    };