toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (maxValueColor != null) 'maxValueColor': maxValueColor!,
      if (maxValueColorStyle != null)
        'maxValueColorStyle': maxValueColorStyle!,
      if (midValueColor != null) 'midValueColor': midValueColor!,
      if (midValueColorStyle != null)
        'midValueColorStyle': midValueColorStyle!,
      if (minValueColor != null) 'minValueColor': minValueColor!,
      if (minValueColorStyle != null)
        'minValueColorStyle': minValueColorStyle!,
      if (noDataColor != null) 'noDataColor': noDataColor!,
      if (noDataColorStyle != null) 'noDataColorStyle': noDataColorStyle!,
    };