TestParsingMerge constructor

TestParsingMerge({
  1. TestAllTypes? requiredAllTypes,
  2. TestAllTypes? optionalAllTypes,
  3. Iterable<TestAllTypes>? repeatedAllTypes,
  4. TestParsingMerge_OptionalGroup? optionalGroup,
  5. Iterable<TestParsingMerge_RepeatedGroup>? repeatedGroup,
})

Implementation

factory TestParsingMerge({
  TestAllTypes? requiredAllTypes,
  TestAllTypes? optionalAllTypes,
  $core.Iterable<TestAllTypes>? repeatedAllTypes,
  TestParsingMerge_OptionalGroup? optionalGroup,
  $core.Iterable<TestParsingMerge_RepeatedGroup>? repeatedGroup,
}) {
  final _result = create();
  if (requiredAllTypes != null) {
    _result.requiredAllTypes = requiredAllTypes;
  }
  if (optionalAllTypes != null) {
    _result.optionalAllTypes = optionalAllTypes;
  }
  if (repeatedAllTypes != null) {
    _result.repeatedAllTypes.addAll(repeatedAllTypes);
  }
  if (optionalGroup != null) {
    _result.optionalGroup = optionalGroup;
  }
  if (repeatedGroup != null) {
    _result.repeatedGroup.addAll(repeatedGroup);
  }
  return _result;
}