toJson method
Implementation
Map<String, dynamic> toJson() {
final afterConnectScript = this.afterConnectScript;
final databaseName = this.databaseName;
final eventsPollInterval = this.eventsPollInterval;
final maxFileSize = this.maxFileSize;
final parallelLoadThreads = this.parallelLoadThreads;
final password = this.password;
final port = this.port;
final secretsManagerAccessRoleArn = this.secretsManagerAccessRoleArn;
final secretsManagerSecretId = this.secretsManagerSecretId;
final serverName = this.serverName;
final serverTimezone = this.serverTimezone;
final targetDbType = this.targetDbType;
final username = this.username;
return {
if (afterConnectScript != null) 'AfterConnectScript': afterConnectScript,
if (databaseName != null) 'DatabaseName': databaseName,
if (eventsPollInterval != null) 'EventsPollInterval': eventsPollInterval,
if (maxFileSize != null) 'MaxFileSize': maxFileSize,
if (parallelLoadThreads != null)
'ParallelLoadThreads': parallelLoadThreads,
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 (serverTimezone != null) 'ServerTimezone': serverTimezone,
if (targetDbType != null) 'TargetDbType': targetDbType.toValue(),
if (username != null) 'Username': username,
};
}