ElasticsearchSettings.fromJson constructor

ElasticsearchSettings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ElasticsearchSettings.fromJson(Map<String, dynamic> json) {
  return ElasticsearchSettings(
    endpointUri: json['EndpointUri'] as String,
    serviceAccessRoleArn: json['ServiceAccessRoleArn'] as String,
    errorRetryDuration: json['ErrorRetryDuration'] as int?,
    fullLoadErrorPercentage: json['FullLoadErrorPercentage'] as int?,
  );
}