CollectMessage.fromJson constructor
Implementation
factory CollectMessage.fromJson(Map<String, dynamic> json) {
return CollectMessage(
message: json['message'] as String? ?? '',
conversationName: json['conversationName'] as String? ?? '',
senderName: json['senderName'] as String? ?? '',
avatar: json['avatar'],
);
}