TestMap constructor

TestMap({
  1. Map<int, int>? mapInt32Int32,
  2. Map<Int64, Int64>? mapInt64Int64,
  3. Map<int, int>? mapUint32Uint32,
  4. Map<Int64, Int64>? mapUint64Uint64,
  5. Map<int, int>? mapSint32Sint32,
  6. Map<Int64, Int64>? mapSint64Sint64,
  7. Map<int, int>? mapFixed32Fixed32,
  8. Map<Int64, Int64>? mapFixed64Fixed64,
  9. Map<int, int>? mapSfixed32Sfixed32,
  10. Map<Int64, Int64>? mapSfixed64Sfixed64,
  11. Map<int, double>? mapInt32Float,
  12. Map<int, double>? mapInt32Double,
  13. Map<bool, bool>? mapBoolBool,
  14. Map<String, String>? mapStringString,
  15. Map<int, List<int>>? mapInt32Bytes,
  16. Map<int, MapEnum>? mapInt32Enum,
  17. Map<int, ForeignMessage>? mapInt32ForeignMessage,
  18. Map<String, ForeignMessage>? mapStringForeignMessage,
  19. Map<int, TestAllTypes>? mapInt32AllTypes,
})

Implementation

factory TestMap({
  $core.Map<$core.int, $core.int>? mapInt32Int32,
  $core.Map<$fixnum.Int64, $fixnum.Int64>? mapInt64Int64,
  $core.Map<$core.int, $core.int>? mapUint32Uint32,
  $core.Map<$fixnum.Int64, $fixnum.Int64>? mapUint64Uint64,
  $core.Map<$core.int, $core.int>? mapSint32Sint32,
  $core.Map<$fixnum.Int64, $fixnum.Int64>? mapSint64Sint64,
  $core.Map<$core.int, $core.int>? mapFixed32Fixed32,
  $core.Map<$fixnum.Int64, $fixnum.Int64>? mapFixed64Fixed64,
  $core.Map<$core.int, $core.int>? mapSfixed32Sfixed32,
  $core.Map<$fixnum.Int64, $fixnum.Int64>? mapSfixed64Sfixed64,
  $core.Map<$core.int, $core.double>? mapInt32Float,
  $core.Map<$core.int, $core.double>? mapInt32Double,
  $core.Map<$core.bool, $core.bool>? mapBoolBool,
  $core.Map<$core.String, $core.String>? mapStringString,
  $core.Map<$core.int, $core.List<$core.int>>? mapInt32Bytes,
  $core.Map<$core.int, MapEnum>? mapInt32Enum,
  $core.Map<$core.int, $0.ForeignMessage>? mapInt32ForeignMessage,
  $core.Map<$core.String, $0.ForeignMessage>? mapStringForeignMessage,
  $core.Map<$core.int, $0.TestAllTypes>? mapInt32AllTypes,
}) {
  final _result = create();
  if (mapInt32Int32 != null) {
    _result.mapInt32Int32.addAll(mapInt32Int32);
  }
  if (mapInt64Int64 != null) {
    _result.mapInt64Int64.addAll(mapInt64Int64);
  }
  if (mapUint32Uint32 != null) {
    _result.mapUint32Uint32.addAll(mapUint32Uint32);
  }
  if (mapUint64Uint64 != null) {
    _result.mapUint64Uint64.addAll(mapUint64Uint64);
  }
  if (mapSint32Sint32 != null) {
    _result.mapSint32Sint32.addAll(mapSint32Sint32);
  }
  if (mapSint64Sint64 != null) {
    _result.mapSint64Sint64.addAll(mapSint64Sint64);
  }
  if (mapFixed32Fixed32 != null) {
    _result.mapFixed32Fixed32.addAll(mapFixed32Fixed32);
  }
  if (mapFixed64Fixed64 != null) {
    _result.mapFixed64Fixed64.addAll(mapFixed64Fixed64);
  }
  if (mapSfixed32Sfixed32 != null) {
    _result.mapSfixed32Sfixed32.addAll(mapSfixed32Sfixed32);
  }
  if (mapSfixed64Sfixed64 != null) {
    _result.mapSfixed64Sfixed64.addAll(mapSfixed64Sfixed64);
  }
  if (mapInt32Float != null) {
    _result.mapInt32Float.addAll(mapInt32Float);
  }
  if (mapInt32Double != null) {
    _result.mapInt32Double.addAll(mapInt32Double);
  }
  if (mapBoolBool != null) {
    _result.mapBoolBool.addAll(mapBoolBool);
  }
  if (mapStringString != null) {
    _result.mapStringString.addAll(mapStringString);
  }
  if (mapInt32Bytes != null) {
    _result.mapInt32Bytes.addAll(mapInt32Bytes);
  }
  if (mapInt32Enum != null) {
    _result.mapInt32Enum.addAll(mapInt32Enum);
  }
  if (mapInt32ForeignMessage != null) {
    _result.mapInt32ForeignMessage.addAll(mapInt32ForeignMessage);
  }
  if (mapStringForeignMessage != null) {
    _result.mapStringForeignMessage.addAll(mapStringForeignMessage);
  }
  if (mapInt32AllTypes != null) {
    _result.mapInt32AllTypes.addAll(mapInt32AllTypes);
  }
  return _result;
}