toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final decryptionMode = this.decryptionMode;
  final encryptedDecryptionKey = this.encryptedDecryptionKey;
  final initializationVector = this.initializationVector;
  final kmsKeyRegion = this.kmsKeyRegion;
  return {
    if (decryptionMode != null) 'decryptionMode': decryptionMode.toValue(),
    if (encryptedDecryptionKey != null)
      'encryptedDecryptionKey': encryptedDecryptionKey,
    if (initializationVector != null)
      'initializationVector': initializationVector,
    if (kmsKeyRegion != null) 'kmsKeyRegion': kmsKeyRegion,
  };
}