AlgorithmSpecification.fromJson constructor
AlgorithmSpecification.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AlgorithmSpecification.fromJson(Map<String, dynamic> json) {
return AlgorithmSpecification(
trainingInputMode:
(json['TrainingInputMode'] as String).toTrainingInputMode(),
algorithmName: json['AlgorithmName'] as String?,
enableSageMakerMetricsTimeSeries:
json['EnableSageMakerMetricsTimeSeries'] as bool?,
metricDefinitions: (json['MetricDefinitions'] as List?)
?.whereNotNull()
.map((e) => MetricDefinition.fromJson(e as Map<String, dynamic>))
.toList(),
trainingImage: json['TrainingImage'] as String?,
);
}