Histogram.fromJson constructor

Histogram.fromJson(
  1. Map json_
)

Implementation

Histogram.fromJson(core.Map json_)
    : this(
        bucketCounts: json_.containsKey('bucketCounts')
            ? (json_['bucketCounts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        firstBucketOffset: json_.containsKey('firstBucketOffset')
            ? json_['firstBucketOffset'] as core.int
            : null,
      );