TestMessageWithCustomOptions constructor

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

Implementation

factory TestMessageWithCustomOptions({
  $core.String? field1,
  $core.int? oneofField,
  $core.Iterable<$core.MapEntry<$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.addEntries(mapField);
  return result;
}