ElasticsearchDestinationDescription.fromJson constructor
ElasticsearchDestinationDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ElasticsearchDestinationDescription.fromJson(
Map<String, dynamic> json) {
return ElasticsearchDestinationDescription(
bufferingHints: json['BufferingHints'] != null
? ElasticsearchBufferingHints.fromJson(
json['BufferingHints'] as Map<String, dynamic>)
: null,
cloudWatchLoggingOptions: json['CloudWatchLoggingOptions'] != null
? CloudWatchLoggingOptions.fromJson(
json['CloudWatchLoggingOptions'] as Map<String, dynamic>)
: null,
clusterEndpoint: json['ClusterEndpoint'] as String?,
domainARN: json['DomainARN'] as String?,
indexName: json['IndexName'] as String?,
indexRotationPeriod: (json['IndexRotationPeriod'] as String?)
?.toElasticsearchIndexRotationPeriod(),
processingConfiguration: json['ProcessingConfiguration'] != null
? ProcessingConfiguration.fromJson(
json['ProcessingConfiguration'] as Map<String, dynamic>)
: null,
retryOptions: json['RetryOptions'] != null
? ElasticsearchRetryOptions.fromJson(
json['RetryOptions'] as Map<String, dynamic>)
: null,
roleARN: json['RoleARN'] as String?,
s3BackupMode:
(json['S3BackupMode'] as String?)?.toElasticsearchS3BackupMode(),
s3DestinationDescription: json['S3DestinationDescription'] != null
? S3DestinationDescription.fromJson(
json['S3DestinationDescription'] as Map<String, dynamic>)
: null,
typeName: json['TypeName'] as String?,
vpcConfigurationDescription: json['VpcConfigurationDescription'] != null
? VpcConfigurationDescription.fromJson(
json['VpcConfigurationDescription'] as Map<String, dynamic>)
: null,
);
}