HistogramChartSpec.fromJson constructor

HistogramChartSpec.fromJson(
  1. Map json_
)

Implementation

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