toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
  final clusterJDBCURL = this.clusterJDBCURL;
  final copyCommand = this.copyCommand;
  final password = this.password;
  final processingConfiguration = this.processingConfiguration;
  final retryOptions = this.retryOptions;
  final roleARN = this.roleARN;
  final s3BackupMode = this.s3BackupMode;
  final s3BackupUpdate = this.s3BackupUpdate;
  final s3Update = this.s3Update;
  final username = this.username;
  return {
    if (cloudWatchLoggingOptions != null)
      'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
    if (clusterJDBCURL != null) 'ClusterJDBCURL': clusterJDBCURL,
    if (copyCommand != null) 'CopyCommand': copyCommand,
    if (password != null) 'Password': password,
    if (processingConfiguration != null)
      'ProcessingConfiguration': processingConfiguration,
    if (retryOptions != null) 'RetryOptions': retryOptions,
    if (roleARN != null) 'RoleARN': roleARN,
    if (s3BackupMode != null) 'S3BackupMode': s3BackupMode.toValue(),
    if (s3BackupUpdate != null) 'S3BackupUpdate': s3BackupUpdate,
    if (s3Update != null) 'S3Update': s3Update,
    if (username != null) 'Username': username,
  };
}