MetricRule.fromJson constructor

MetricRule.fromJson(
  1. Map _json
)

Implementation

MetricRule.fromJson(core.Map _json) {
  if (_json.containsKey("metricCosts")) {
    metricCosts =
        (_json["metricCosts"] as core.Map).cast<core.String, core.String>();
  }
  if (_json.containsKey("selector")) {
    selector = _json["selector"];
  }
}