toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bufferingHints = this.bufferingHints;
  final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
  final clusterEndpoint = this.clusterEndpoint;
  final domainARN = this.domainARN;
  final indexName = this.indexName;
  final indexRotationPeriod = this.indexRotationPeriod;
  final processingConfiguration = this.processingConfiguration;
  final retryOptions = this.retryOptions;
  final roleARN = this.roleARN;
  final s3Update = this.s3Update;
  final typeName = this.typeName;
  return {
    if (bufferingHints != null) 'BufferingHints': bufferingHints,
    if (cloudWatchLoggingOptions != null)
      'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
    if (clusterEndpoint != null) 'ClusterEndpoint': clusterEndpoint,
    if (domainARN != null) 'DomainARN': domainARN,
    if (indexName != null) 'IndexName': indexName,
    if (indexRotationPeriod != null)
      'IndexRotationPeriod': indexRotationPeriod.toValue(),
    if (processingConfiguration != null)
      'ProcessingConfiguration': processingConfiguration,
    if (retryOptions != null) 'RetryOptions': retryOptions,
    if (roleARN != null) 'RoleARN': roleARN,
    if (s3Update != null) 'S3Update': s3Update,
    if (typeName != null) 'TypeName': typeName,
  };
}