ExponentialBuckets.fromJson constructor

ExponentialBuckets.fromJson(
  1. Map json_
)

Implementation

ExponentialBuckets.fromJson(core.Map json_)
    : this(
        growthFactor: json_.containsKey('growthFactor')
            ? (json_['growthFactor'] as core.num).toDouble()
            : null,
        numFiniteBuckets: json_.containsKey('numFiniteBuckets')
            ? json_['numFiniteBuckets'] as core.int
            : null,
        scale: json_.containsKey('scale')
            ? (json_['scale'] as core.num).toDouble()
            : null,
      );