EnumOptions constructor
EnumOptions({
- bool? allowAlias,
- bool? deprecated,
- @Deprecated('This field is deprecated.') bool? deprecatedLegacyJsonFieldConflicts,
- FeatureSet? features,
- Iterable<
UninterpretedOption> ? uninterpretedOption,
Implementation
factory EnumOptions({
$core.bool? allowAlias,
$core.bool? deprecated,
@$core.Deprecated('This field is deprecated.')
$core.bool? deprecatedLegacyJsonFieldConflicts,
FeatureSet? features,
$core.Iterable<UninterpretedOption>? uninterpretedOption,
}) {
final $result = create();
if (allowAlias != null) {
$result.allowAlias = allowAlias;
}
if (deprecated != null) {
$result.deprecated = deprecated;
}
if (deprecatedLegacyJsonFieldConflicts != null) {
// ignore: deprecated_member_use_from_same_package
$result.deprecatedLegacyJsonFieldConflicts = deprecatedLegacyJsonFieldConflicts;
}
if (features != null) {
$result.features = features;
}
if (uninterpretedOption != null) {
$result.uninterpretedOption.addAll(uninterpretedOption);
}
return $result;
}