Endpoint constructor
Endpoint({})
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;
}