toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (customSubtotals != null) 'customSubtotals': customSubtotals!,
      if (data != null) 'data': data!,
      if (dataLabel != null) 'dataLabel': dataLabel!,
      if (hideTrailingSubtotal != null)
        'hideTrailingSubtotal': hideTrailingSubtotal!,
      if (negativeColumnsStyle != null)
        'negativeColumnsStyle': negativeColumnsStyle!,
      if (positiveColumnsStyle != null)
        'positiveColumnsStyle': positiveColumnsStyle!,
      if (subtotalColumnsStyle != null)
        'subtotalColumnsStyle': subtotalColumnsStyle!,
    };