TestEnumMap constructor

TestEnumMap({
  1. Map<int, Proto2MapEnum>? knownMapField,
  2. Map<int, Proto2MapEnum>? unknownMapField,
})

Implementation

factory TestEnumMap({
  $core.Map<$core.int, Proto2MapEnum>? knownMapField,
  $core.Map<$core.int, Proto2MapEnum>? unknownMapField,
}) {
  final _result = create();
  if (knownMapField != null) {
    _result.knownMapField.addAll(knownMapField);
  }
  if (unknownMapField != null) {
    _result.unknownMapField.addAll(unknownMapField);
  }
  return _result;
}