FeaturizationConfig.fromJson constructor
FeaturizationConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FeaturizationConfig.fromJson(Map<String, dynamic> json) {
return FeaturizationConfig(
forecastFrequency: json['ForecastFrequency'] as String,
featurizations: (json['Featurizations'] as List?)
?.whereNotNull()
.map((e) => Featurization.fromJson(e as Map<String, dynamic>))
.toList(),
forecastDimensions: (json['ForecastDimensions'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}