DidcommEncryptedMessage.fromJson constructor

DidcommEncryptedMessage.fromJson(
  1. dynamic message
)

Implementation

DidcommEncryptedMessage.fromJson(dynamic message) {
  Map<String, dynamic> decoded = credentialToMap(message);
  ciphertext = decoded['ciphertext']!;
  iv = decoded['iv']!;
  tag = decoded['tag']!;
  recipients = decoded['recipients']! as List;
  protectedHeader = decoded['protected']!;
  _decodeProtected();
}