changeToSentryMap method

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

Implementation

Map<String, String> changeToSentryMap(Map<String, dynamic> map) {
  final sentryMap = <String, String>{};
  map.forEach((key, dynamic value) {
    if (value.toString().isEmpty) {
      sentryMap[key] = 'none';
    } else {
      sentryMap[key] = value.toString();
    }
  });
  return sentryMap;
}