Map<String, dynamic> toJson() { final type = this.type; final kmsKeyArn = this.kmsKeyArn; return { 'Type': type.toValue(), if (kmsKeyArn != null) 'KmsKeyArn': kmsKeyArn, }; }