$MetricRule.fromJson constructor

$MetricRule.fromJson(
  1. Map json_
)

Implementation

$MetricRule.fromJson(core.Map json_)
    : this(
        metricCosts: json_.containsKey('metricCosts')
            ? (json_['metricCosts'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        selector: json_.containsKey('selector')
            ? json_['selector'] as core.String
            : null,
      );