Usage constructor

Usage({
  1. Iterable<String>? requirements,
  2. Iterable<UsageRule>? rules,
  3. String? producerNotificationChannel,
})

Implementation

factory Usage({
  $core.Iterable<$core.String>? requirements,
  $core.Iterable<UsageRule>? rules,
  $core.String? producerNotificationChannel,
}) {
  final _result = create();
  if (requirements != null) {
    _result.requirements.addAll(requirements);
  }
  if (rules != null) {
    _result.rules.addAll(rules);
  }
  if (producerNotificationChannel != null) {
    _result.producerNotificationChannel = producerNotificationChannel;
  }
  return _result;
}