Distribution.fromJson constructor
Distribution.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Distribution.fromJson(Map<String, dynamic> json) {
return Distribution(
count: decodeInt64(json['count']) ?? 0,
mean: decodeDouble(json['mean']) ?? 0,
sumOfSquaredDeviation: decodeDouble(json['sumOfSquaredDeviation']) ?? 0,
range: decode(json['range'], Distribution_Range.fromJson),
bucketOptions: decode(
json['bucketOptions'],
Distribution_BucketOptions.fromJson,
),
bucketCounts: decodeList(json['bucketCounts']) ?? [],
exemplars:
decodeListMessage(
json['exemplars'],
Distribution_Exemplar.fromJson,
) ??
[],
);
}