toJson method
Implementation
Map<String, Object?> toJson() {
final data = <String, Object?>{};
if (passphrase != null) data['passphrase'] = passphrase!.toJson();
if (iv != null) data['iv'] = iv;
if (mac != null) data['mac'] = mac;
if (algorithm != null) data['algorithm'] = algorithm;
return data;
}