toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
  final hECAcknowledgmentTimeoutInSeconds =
      this.hECAcknowledgmentTimeoutInSeconds;
  final hECEndpoint = this.hECEndpoint;
  final hECEndpointType = this.hECEndpointType;
  final hECToken = this.hECToken;
  final processingConfiguration = this.processingConfiguration;
  final retryOptions = this.retryOptions;
  final s3BackupMode = this.s3BackupMode;
  final s3Update = this.s3Update;
  return {
    if (cloudWatchLoggingOptions != null)
      'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
    if (hECAcknowledgmentTimeoutInSeconds != null)
      'HECAcknowledgmentTimeoutInSeconds': hECAcknowledgmentTimeoutInSeconds,
    if (hECEndpoint != null) 'HECEndpoint': hECEndpoint,
    if (hECEndpointType != null) 'HECEndpointType': hECEndpointType.toValue(),
    if (hECToken != null) 'HECToken': hECToken,
    if (processingConfiguration != null)
      'ProcessingConfiguration': processingConfiguration,
    if (retryOptions != null) 'RetryOptions': retryOptions,
    if (s3BackupMode != null) 'S3BackupMode': s3BackupMode.toValue(),
    if (s3Update != null) 'S3Update': s3Update,
  };
}