toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final endpointConfiguration = this.endpointConfiguration;
  final s3Configuration = this.s3Configuration;
  final bufferingHints = this.bufferingHints;
  final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
  final processingConfiguration = this.processingConfiguration;
  final requestConfiguration = this.requestConfiguration;
  final retryOptions = this.retryOptions;
  final roleARN = this.roleARN;
  final s3BackupMode = this.s3BackupMode;
  return {
    'EndpointConfiguration': endpointConfiguration,
    'S3Configuration': s3Configuration,
    if (bufferingHints != null) 'BufferingHints': bufferingHints,
    if (cloudWatchLoggingOptions != null)
      'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
    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(),
  };
}