Quota.fromJson constructor

Quota.fromJson(
  1. Map _json
)

Implementation

Quota.fromJson(core.Map _json) {
  if (_json.containsKey("limits")) {
    limits = (_json["limits"] as core.List)
        .map<QuotaLimit>((value) => new QuotaLimit.fromJson(value))
        .toList();
  }
  if (_json.containsKey("metricRules")) {
    metricRules = (_json["metricRules"] as core.List)
        .map<MetricRule>((value) => new MetricRule.fromJson(value))
        .toList();
  }
}