DistributionUpdate.fromJson constructor

DistributionUpdate.fromJson(
  1. 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,
      );