toJson method
Implementation
Map<String, dynamic> toJson() => {
"message": message,
"readBy": readBy,
"type": type,
"msgId": msgId,
"secretKey": secretKey,
"sentBy": sentBy,
"viewBy":
viewBy == null ? null : List<dynamic>.from(viewBy!.map((x) => x)),
"timeMilliSeconds":
timeMilliSeconds == null ? null : timeMilliSeconds!.toJson(),
"sentAt": sentAt == null ? null : sentAt!.toJson(),
"isRead": isRead,
"image": image,
"base64Thumbnail": base64Thumbnail,
"video": video,
"thumbnail": thumbnail,
"document": document,
"audio": audio,
};