teamFromMap function Null safety

NIMTeam? teamFromMap(
  1. Map? map
)

Implementation

NIMTeam? teamFromMap(Map? map) =>
    map == null ? null : NIMTeam.fromMap(map.cast<String, dynamic>());