ZegoInRoomMessage constructor
ZegoInRoomMessage({})
Implementation
ZegoInRoomMessage({
required this.user,
required this.message,
required this.timestamp,
required this.messageID,
this.attributes = const {},
}) {
try {
/// {'msg':'xxx', 'attrs':''}
var jsonMap = jsonDecode(message);
message = jsonMap[messageKey]!;
attributes = Map.from(jsonMap[attributesKey]!);
} catch (e) {
attributes = {};
}
}