EnumOptions constructor

EnumOptions({
  1. bool? allowAlias,
  2. bool? deprecated,
  3. @Deprecated('This field is deprecated.') bool? deprecatedLegacyJsonFieldConflicts,
  4. FeatureSet? features,
  5. 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;
}