HMSMessage.fromMap constructor Null safety

HMSMessage.fromMap(
  1. 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,
  );
}