HistogramChartSpec.fromJson constructor

HistogramChartSpec.fromJson(
  1. Map json_
)

Implementation

HistogramChartSpec.fromJson(core.Map json_)
  : this(
      bucketSize: (json_['bucketSize'] as core.num?)?.toDouble(),
      legendPosition: json_['legendPosition'] as core.String?,
      outlierPercentile: (json_['outlierPercentile'] as core.num?)
          ?.toDouble(),
      series: (json_['series'] as core.List?)
          ?.map(
            (value) => HistogramSeries.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      showItemDividers: json_['showItemDividers'] as core.bool?,
    );