Quota.fromJson constructor

Quota.fromJson(
  1. Map json_
)

Implementation

Quota.fromJson(core.Map json_)
  : this(
      limits:
          (json_['limits'] as core.List?)
              ?.map(
                (value) => QuotaLimit.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      metricRules:
          (json_['metricRules'] as core.List?)
              ?.map(
                (value) => MetricRule.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
    );