TreemapChartColorScale.fromJson constructor

TreemapChartColorScale.fromJson(
  1. Map json_
)

Implementation

TreemapChartColorScale.fromJson(core.Map json_)
    : this(
        maxValueColor: json_.containsKey('maxValueColor')
            ? Color.fromJson(
                json_['maxValueColor'] as core.Map<core.String, core.dynamic>)
            : null,
        maxValueColorStyle: json_.containsKey('maxValueColorStyle')
            ? ColorStyle.fromJson(json_['maxValueColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        midValueColor: json_.containsKey('midValueColor')
            ? Color.fromJson(
                json_['midValueColor'] as core.Map<core.String, core.dynamic>)
            : null,
        midValueColorStyle: json_.containsKey('midValueColorStyle')
            ? ColorStyle.fromJson(json_['midValueColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        minValueColor: json_.containsKey('minValueColor')
            ? Color.fromJson(
                json_['minValueColor'] as core.Map<core.String, core.dynamic>)
            : null,
        minValueColorStyle: json_.containsKey('minValueColorStyle')
            ? ColorStyle.fromJson(json_['minValueColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        noDataColor: json_.containsKey('noDataColor')
            ? Color.fromJson(
                json_['noDataColor'] as core.Map<core.String, core.dynamic>)
            : null,
        noDataColorStyle: json_.containsKey('noDataColorStyle')
            ? ColorStyle.fromJson(json_['noDataColorStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
      );