convertDateTimeToString function
Implementation
Map<String, dynamic> convertDateTimeToString(Map<String, dynamic> map) {
for (var entry in map.entries) {
if (entry.value is DateTime) {
map[entry.key] = (entry.value as DateTime).toIso8601String();
}
}
return map;
}