Endpoint constructor

Endpoint({
  1. String? name,
  2. @Deprecated('This field is deprecated.') Iterable<String>? aliases,
  3. Iterable<String>? features,
  4. bool? allowCors,
  5. String? target,
})

Implementation

factory Endpoint({
  $core.String? name,
  @$core.Deprecated('This field is deprecated.')
      $core.Iterable<$core.String>? aliases,
  $core.Iterable<$core.String>? features,
  $core.bool? allowCors,
  $core.String? target,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (aliases != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.aliases.addAll(aliases);
  }
  if (features != null) {
    _result.features.addAll(features);
  }
  if (allowCors != null) {
    _result.allowCors = allowCors;
  }
  if (target != null) {
    _result.target = target;
  }
  return _result;
}