toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'sharedKey': sharedKey,
'ratchetSalt': ratchetSalt,
if (uncryptedMagicBytes != null)
'uncryptedMagicBytes': uncryptedMagicBytes,
'ratchetWindowSize': ratchetWindowSize,
};
}