toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final currentLsn = this.currentLsn;
  final databaseName = this.databaseName;
  final maxKBytesPerRead = this.maxKBytesPerRead;
  final password = this.password;
  final port = this.port;
  final secretsManagerAccessRoleArn = this.secretsManagerAccessRoleArn;
  final secretsManagerSecretId = this.secretsManagerSecretId;
  final serverName = this.serverName;
  final setDataCaptureChanges = this.setDataCaptureChanges;
  final username = this.username;
  return {
    if (currentLsn != null) 'CurrentLsn': currentLsn,
    if (databaseName != null) 'DatabaseName': databaseName,
    if (maxKBytesPerRead != null) 'MaxKBytesPerRead': maxKBytesPerRead,
    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 (setDataCaptureChanges != null)
      'SetDataCaptureChanges': setDataCaptureChanges,
    if (username != null) 'Username': username,
  };
}