CollectMessage.fromJson constructor

CollectMessage.fromJson(
  1. Map<String, dynamic> json
)

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'],
  );
}