DistributionUpdate.fromJson constructor
DistributionUpdate.fromJson(
- Map _json
Implementation
DistributionUpdate.fromJson(core.Map _json)
: this(
count: _json.containsKey('count')
? SplitInt64.fromJson(
_json['count'] as core.Map<core.String, core.dynamic>)
: null,
histogram: _json.containsKey('histogram')
? Histogram.fromJson(
_json['histogram'] as core.Map<core.String, core.dynamic>)
: null,
max: _json.containsKey('max')
? SplitInt64.fromJson(
_json['max'] as core.Map<core.String, core.dynamic>)
: null,
min: _json.containsKey('min')
? SplitInt64.fromJson(
_json['min'] as core.Map<core.String, core.dynamic>)
: null,
sum: _json.containsKey('sum')
? SplitInt64.fromJson(
_json['sum'] as core.Map<core.String, core.dynamic>)
: null,
sumOfSquares: _json.containsKey('sumOfSquares')
? (_json['sumOfSquares'] as core.num).toDouble()
: null,
);