toJson method

Json toJson()

Implementation

Json toJson() => {
      'on': on,
      'by': by,
      'dim': dim,
      if (band != null) 'band': _hex(band!),
      'grow': grow,
      'dot': dot,
      'tooltip': tooltip,
      if (title.isNotEmpty) 'title': title,
      if (tooltipFill != null) 'tooltipFill': _hex(tooltipFill!),
      if (tooltipText != null) 'tooltipText': _hex(tooltipText!),
      'total': total,
    };