CustomAttributeHistogramResult.fromJson constructor

CustomAttributeHistogramResult.fromJson(
  1. Map json_
)

Implementation

CustomAttributeHistogramResult.fromJson(core.Map json_)
    : this(
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        longValueHistogramResult:
            json_.containsKey('longValueHistogramResult')
                ? NumericBucketingResult.fromJson(
                    json_['longValueHistogramResult']
                        as core.Map<core.String, core.dynamic>)
                : null,
        stringValueHistogramResult:
            json_.containsKey('stringValueHistogramResult')
                ? (json_['stringValueHistogramResult']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      value as core.int,
                    ),
                  )
                : null,
      );