SolutionVersion.fromJson constructor
SolutionVersion.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SolutionVersion.fromJson(Map<String, dynamic> json) {
return SolutionVersion(
creationDateTime: timeStampFromJson(json['creationDateTime']),
datasetGroupArn: json['datasetGroupArn'] as String?,
eventType: json['eventType'] as String?,
failureReason: json['failureReason'] as String?,
lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']),
performAutoML: json['performAutoML'] as bool?,
performHPO: json['performHPO'] as bool?,
recipeArn: json['recipeArn'] as String?,
solutionArn: json['solutionArn'] as String?,
solutionConfig: json['solutionConfig'] != null
? SolutionConfig.fromJson(
json['solutionConfig'] as Map<String, dynamic>)
: null,
solutionVersionArn: json['solutionVersionArn'] as String?,
status: json['status'] as String?,
trainingHours: json['trainingHours'] as double?,
trainingMode: (json['trainingMode'] as String?)?.toTrainingMode(),
tunedHPOParams: json['tunedHPOParams'] != null
? TunedHPOParams.fromJson(
json['tunedHPOParams'] as Map<String, dynamic>)
: null,
);
}