convertDateTimeToString function

Map<String, dynamic> convertDateTimeToString(
  1. Map<String, dynamic> map
)

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;
}