Message.fromMap constructor Null safety

Message.fromMap(
  1. Map<String, dynamic> map
)

Implementation

Message.fromMap(Map<String, dynamic> map) {
  mid = map['mid'];
  content = map['content'];
  imageUrl = map['imageUrl'];
  voiceUrl = map['voiceUrl'];
  videoUrl = map['videoUrl'];
  fileUrl = map['fileUrl'];
  nickname = map['nickname'];
  avatar = map['avatar'];
  type = map['type'];
  topic = map['topic'];
  status = map['status'];
  timestamp = map['timestamp'];
  isSend = map['isSend'];
  client = map['client'];
}