toJson method

Map<String, dynamic> toJson()

Implementation

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