toJson method

Map<String, dynamic> toJson()

Implementation

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