toJson method
Implementation
Map<String, dynamic> toJson() {
final databaseName = this.databaseName;
final docsToInvestigate = this.docsToInvestigate;
final extractDocId = this.extractDocId;
final kmsKeyId = this.kmsKeyId;
final nestingLevel = this.nestingLevel;
final password = this.password;
final port = this.port;
final secretsManagerAccessRoleArn = this.secretsManagerAccessRoleArn;
final secretsManagerSecretId = this.secretsManagerSecretId;
final serverName = this.serverName;
final username = this.username;
return {
if (databaseName != null) 'DatabaseName': databaseName,
if (docsToInvestigate != null) 'DocsToInvestigate': docsToInvestigate,
if (extractDocId != null) 'ExtractDocId': extractDocId,
if (kmsKeyId != null) 'KmsKeyId': kmsKeyId,
if (nestingLevel != null) 'NestingLevel': nestingLevel.toValue(),
if (password != null) 'Password': password,
if (port != null) 'Port': port,
if (secretsManagerAccessRoleArn != null)
'SecretsManagerAccessRoleArn': secretsManagerAccessRoleArn,
if (secretsManagerSecretId != null)
'SecretsManagerSecretId': secretsManagerSecretId,
if (serverName != null) 'ServerName': serverName,
if (username != null) 'Username': username,
};
}