ActiveMetricRestriction.fromJson constructor

ActiveMetricRestriction.fromJson(
  1. Map _json
)

Implementation

ActiveMetricRestriction.fromJson(core.Map _json)
    : this(
        metricName: _json.containsKey('metricName')
            ? _json['metricName'] as core.String
            : null,
        restrictedMetricTypes: _json.containsKey('restrictedMetricTypes')
            ? (_json['restrictedMetricTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );