deepCloneMap function
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)))};
}