toJson method

Map<String, dynamic> toJson()

Implementation

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