Quota constructor

Quota({
  1. Iterable<QuotaLimit>? limits,
  2. Iterable<MetricRule>? metricRules,
})

Implementation

factory Quota({
  $core.Iterable<QuotaLimit>? limits,
  $core.Iterable<MetricRule>? metricRules,
}) {
  final _result = create();
  if (limits != null) {
    _result.limits.addAll(limits);
  }
  if (metricRules != null) {
    _result.metricRules.addAll(metricRules);
  }
  return _result;
}