TestMessageWithCustomOptions constructor

TestMessageWithCustomOptions({
  1. String? field1,
  2. int? oneofField,
  3. Map<String, String>? mapField,
})

Implementation

factory TestMessageWithCustomOptions({
  $core.String? field1,
  $core.int? oneofField,
  $core.Map<$core.String, $core.String>? mapField,
}) {
  final _result = create();
  if (field1 != null) {
    _result.field1 = field1;
  }
  if (oneofField != null) {
    _result.oneofField = oneofField;
  }
  if (mapField != null) {
    _result.mapField.addAll(mapField);
  }
  return _result;
}