toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serializes an Encryption to its RWPM JSON representation.

Implementation

@override
Map<String, dynamic> toJson() => {
      "algorithm": algorithm,
      if (compression != null) "compression": compression,
      if (originalLength != null) "originalLength": originalLength,
      if (profile != null) "profile": profile,
      if (scheme != null) "scheme": scheme,
    };