toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final encryptionType = this.encryptionType;
  final kmsKey = this.kmsKey;
  return {
    'encryptionType': encryptionType.toValue(),
    if (kmsKey != null) 'kmsKey': kmsKey,
  };
}