teamToMap function Null safety

Map? teamToMap(
  1. NIMTeam? nimTeam
)

Implementation

Map? teamToMap(NIMTeam? nimTeam) => nimTeam?.toMap();