FooWithExtraFields constructor

FooWithExtraFields({
  1. int? int32Value,
  2. FooWithExtraFields_NestedEnum? enumValue,
  3. int? extraInt32Value,
})

Implementation

factory FooWithExtraFields({
  $core.int? int32Value,
  FooWithExtraFields_NestedEnum? enumValue,
  $core.int? extraInt32Value,
}) {
  final _result = create();
  if (int32Value != null) {
    _result.int32Value = int32Value;
  }
  if (enumValue != null) {
    _result.enumValue = enumValue;
  }
  if (extraInt32Value != null) {
    _result.extraInt32Value = extraInt32Value;
  }
  return _result;
}