TestOneofBackwardsCompatible constructor

TestOneofBackwardsCompatible({
  1. int? fooInt,
  2. String? fooString,
  3. TestAllTypes? fooMessage,
  4. TestOneofBackwardsCompatible_FooGroup? fooGroup,
})

Implementation

factory TestOneofBackwardsCompatible({
  $core.int? fooInt,
  $core.String? fooString,
  TestAllTypes? fooMessage,
  TestOneofBackwardsCompatible_FooGroup? fooGroup,
}) {
  final _result = create();
  if (fooInt != null) {
    _result.fooInt = fooInt;
  }
  if (fooString != null) {
    _result.fooString = fooString;
  }
  if (fooMessage != null) {
    _result.fooMessage = fooMessage;
  }
  if (fooGroup != null) {
    _result.fooGroup = fooGroup;
  }
  return _result;
}