NumericBucketingResult.fromJson constructor

NumericBucketingResult.fromJson(
  1. Map json_
)

Implementation

NumericBucketingResult.fromJson(core.Map json_)
    : this(
        counts: json_.containsKey('counts')
            ? (json_['counts'] as core.List)
                .map((value) => BucketizedCount.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        maxValue: json_.containsKey('maxValue')
            ? (json_['maxValue'] as core.num).toDouble()
            : null,
        minValue: json_.containsKey('minValue')
            ? (json_['minValue'] as core.num).toDouble()
            : null,
      );