MetricValueSet.fromJson constructor

MetricValueSet.fromJson(
  1. Map json_
)

Implementation

MetricValueSet.fromJson(core.Map json_)
    : this(
        metricName: json_.containsKey('metricName')
            ? json_['metricName'] as core.String
            : null,
        metricValues: json_.containsKey('metricValues')
            ? (json_['metricValues'] as core.List)
                .map((value) => MetricValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );