messageFromMap function Null safety

NIMMessage? messageFromMap(
  1. Map? map
)

Implementation

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