toJson method
Implementation
Map<String, Object?> toJson({List<String> excepts = const []}) {
return {
if (!excepts.contains("id")) "id": id,
"userId": userId,
"peerId": peerId,
"peerName": peerName,
"peerOnline": peerOnline,
"lastModified": lastModified?.toIso8601String(),
"mostRecentMessageId": mostRecentMessageId,
"createdAt": createdAt?.toIso8601String(),
"reference": reference,
};
}