deepCloneMap function Null safety

Map<String, dynamic> deepCloneMap(
  1. Map _in
)

This assumes that the data coming in is a map, list, or primitive (json).

Implementation

Map<String, dynamic> deepCloneMap(final Map _in) {
  return <String, dynamic>{
    ..._in.map((key, value) => MapEntry("$key", deepClone(value)))
  };
}