HMSMessage.fromMap constructor Null safety
- Map map
Implementation
factory HMSMessage.fromMap(Map map) {
print(map.toString());
return HMSMessage(
sender: map['sender'] as String,
message: map['message'] as String,
type: map['type'] as String,
time: map['time'] as String,
);
}