toJson method

  1. @override
dynamic toJson()
override

Converts the object to a JSON representation.

Implementation

@override
toJson() {
  return {
    "headers": headers.toJson(),
    "ciphertext": BytesUtils.tryToHexString(ciphertext),
    "serialization_config": serializationConfig.toJson()
  };
}