mapFromJson static method

Map<String, Notification> mapFromJson(
  1. Map<String, Map<String, dynamic>>? json
)

Implementation

static Map<String, Notification> mapFromJson(Map<String, Map<String, dynamic>>? json) {
  if (json == null) return {};
  return <String, Notification>{
    for (var entry in json.entries) entry.key: Notification.fromJson(entry.value),
  };
}