SetQuotaRequest constructor

SetQuotaRequest({
  1. String? instanceId,
  2. Unit? unit,
  3. Timestamp? from,
  4. Duration? resetInterval,
  5. Int64? amount,
  6. bool? limit,
  7. Iterable<Notification>? notifications,
})

Implementation

factory SetQuotaRequest({
  $core.String? instanceId,
  $28.Unit? unit,
  $6.Timestamp? from,
  $7.Duration? resetInterval,
  $fixnum.Int64? amount,
  $core.bool? limit,
  $core.Iterable<$28.Notification>? notifications,
}) {
  final $result = create();
  if (instanceId != null) {
    $result.instanceId = instanceId;
  }
  if (unit != null) {
    $result.unit = unit;
  }
  if (from != null) {
    $result.from = from;
  }
  if (resetInterval != null) {
    $result.resetInterval = resetInterval;
  }
  if (amount != null) {
    $result.amount = amount;
  }
  if (limit != null) {
    $result.limit = limit;
  }
  if (notifications != null) {
    $result.notifications.addAll(notifications);
  }
  return $result;
}