toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bufferingHints = this.bufferingHints;
  final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
  final endpointConfiguration = this.endpointConfiguration;
  final processingConfiguration = this.processingConfiguration;
  final requestConfiguration = this.requestConfiguration;
  final retryOptions = this.retryOptions;
  final roleARN = this.roleARN;
  final s3BackupMode = this.s3BackupMode;
  final s3Update = this.s3Update;
  return {
    if (bufferingHints != null) 'BufferingHints': bufferingHints,
    if (cloudWatchLoggingOptions != null)
      'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
    if (endpointConfiguration != null)
      'EndpointConfiguration': endpointConfiguration,
    if (processingConfiguration != null)
      'ProcessingConfiguration': processingConfiguration,
    if (requestConfiguration != null)
      'RequestConfiguration': requestConfiguration,
    if (retryOptions != null) 'RetryOptions': retryOptions,
    if (roleARN != null) 'RoleARN': roleARN,
    if (s3BackupMode != null) 'S3BackupMode': s3BackupMode.toValue(),
    if (s3Update != null) 'S3Update': s3Update,
  };
}