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