DefaultDecryptionKey constructor

DefaultDecryptionKey({
  1. required String id,
  2. required String key,
})

Constructor to initialize the Decryption Key response.

Implementation

DefaultDecryptionKey({required this.id, required this.key}) {
  if (id.isEmpty) {
    throw ArgumentError('DecryptionKey id cannot be empty.');
  }
  if (key.isEmpty) {
    throw ArgumentError('DecryptionKey key cannot be empty.');
  }
}