TestEnumMapPlusExtra constructor

TestEnumMapPlusExtra({
  1. Map<int, Proto2MapEnumPlusExtra>? knownMapField,
  2. Map<int, Proto2MapEnumPlusExtra>? unknownMapField,
})

Implementation

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