TestCamelCaseFieldNames constructor

TestCamelCaseFieldNames({
  1. int? primitiveField,
  2. String? stringField,
  3. ForeignEnum? enumField,
  4. ForeignMessage? messageField,
  5. String? stringPieceField,
  6. String? cordField,
  7. Iterable<int>? repeatedPrimitiveField,
  8. Iterable<String>? repeatedStringField,
  9. Iterable<ForeignEnum>? repeatedEnumField,
  10. Iterable<ForeignMessage>? repeatedMessageField,
  11. Iterable<String>? repeatedStringPieceField,
  12. Iterable<String>? repeatedCordField,
})

Implementation

factory TestCamelCaseFieldNames({
  $core.int? primitiveField,
  $core.String? stringField,
  ForeignEnum? enumField,
  ForeignMessage? messageField,
  $core.String? stringPieceField,
  $core.String? cordField,
  $core.Iterable<$core.int>? repeatedPrimitiveField,
  $core.Iterable<$core.String>? repeatedStringField,
  $core.Iterable<ForeignEnum>? repeatedEnumField,
  $core.Iterable<ForeignMessage>? repeatedMessageField,
  $core.Iterable<$core.String>? repeatedStringPieceField,
  $core.Iterable<$core.String>? repeatedCordField,
}) {
  final _result = create();
  if (primitiveField != null) {
    _result.primitiveField = primitiveField;
  }
  if (stringField != null) {
    _result.stringField = stringField;
  }
  if (enumField != null) {
    _result.enumField = enumField;
  }
  if (messageField != null) {
    _result.messageField = messageField;
  }
  if (stringPieceField != null) {
    _result.stringPieceField = stringPieceField;
  }
  if (cordField != null) {
    _result.cordField = cordField;
  }
  if (repeatedPrimitiveField != null) {
    _result.repeatedPrimitiveField.addAll(repeatedPrimitiveField);
  }
  if (repeatedStringField != null) {
    _result.repeatedStringField.addAll(repeatedStringField);
  }
  if (repeatedEnumField != null) {
    _result.repeatedEnumField.addAll(repeatedEnumField);
  }
  if (repeatedMessageField != null) {
    _result.repeatedMessageField.addAll(repeatedMessageField);
  }
  if (repeatedStringPieceField != null) {
    _result.repeatedStringPieceField.addAll(repeatedStringPieceField);
  }
  if (repeatedCordField != null) {
    _result.repeatedCordField.addAll(repeatedCordField);
  }
  return _result;
}