toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['id'] = id;
  map['uid'] = uid;
  map['isSender'] = isSender;
  map['senderAvatar'] = senderAvatar;
  map['receiverAvatar'] = receiverAvatar;
  map['messageContent'] = messageContent;
  map['messageType'] = messageType;
  map['messageStatus'] = messageStatus;
  map['messageTime'] = messageTime;
  return map;
}