Distribution.fromJson constructor
Distribution.fromJson(
- Map json_
Implementation
Distribution.fromJson(core.Map json_)
: this(
bucketCounts: json_.containsKey('bucketCounts')
? (json_['bucketCounts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
bucketOptions: json_.containsKey('bucketOptions')
? BucketOptions.fromJson(
json_['bucketOptions'] as core.Map<core.String, core.dynamic>)
: null,
count:
json_.containsKey('count') ? json_['count'] as core.String : null,
exemplars: json_.containsKey('exemplars')
? (json_['exemplars'] as core.List)
.map((value) => Exemplar.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
mean: json_.containsKey('mean')
? (json_['mean'] as core.num).toDouble()
: null,
range: json_.containsKey('range')
? Range.fromJson(
json_['range'] as core.Map<core.String, core.dynamic>)
: null,
sumOfSquaredDeviation: json_.containsKey('sumOfSquaredDeviation')
? (json_['sumOfSquaredDeviation'] as core.num).toDouble()
: null,
);