DescribeHyperParameterTuningJobResponse.fromJson constructor
DescribeHyperParameterTuningJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeHyperParameterTuningJobResponse.fromJson(
Map<String, dynamic> json) {
return DescribeHyperParameterTuningJobResponse(
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
hyperParameterTuningJobArn: json['HyperParameterTuningJobArn'] as String,
hyperParameterTuningJobConfig: HyperParameterTuningJobConfig.fromJson(
json['HyperParameterTuningJobConfig'] as Map<String, dynamic>),
hyperParameterTuningJobName:
json['HyperParameterTuningJobName'] as String,
hyperParameterTuningJobStatus:
(json['HyperParameterTuningJobStatus'] as String)
.toHyperParameterTuningJobStatus(),
objectiveStatusCounters: ObjectiveStatusCounters.fromJson(
json['ObjectiveStatusCounters'] as Map<String, dynamic>),
trainingJobStatusCounters: TrainingJobStatusCounters.fromJson(
json['TrainingJobStatusCounters'] as Map<String, dynamic>),
bestTrainingJob: json['BestTrainingJob'] != null
? HyperParameterTrainingJobSummary.fromJson(
json['BestTrainingJob'] as Map<String, dynamic>)
: null,
failureReason: json['FailureReason'] as String?,
hyperParameterTuningEndTime:
timeStampFromJson(json['HyperParameterTuningEndTime']),
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
overallBestTrainingJob: json['OverallBestTrainingJob'] != null
? HyperParameterTrainingJobSummary.fromJson(
json['OverallBestTrainingJob'] as Map<String, dynamic>)
: null,
trainingJobDefinition: json['TrainingJobDefinition'] != null
? HyperParameterTrainingJobDefinition.fromJson(
json['TrainingJobDefinition'] as Map<String, dynamic>)
: null,
trainingJobDefinitions: (json['TrainingJobDefinitions'] as List?)
?.whereNotNull()
.map((e) => HyperParameterTrainingJobDefinition.fromJson(
e as Map<String, dynamic>))
.toList(),
warmStartConfig: json['WarmStartConfig'] != null
? HyperParameterTuningJobWarmStartConfig.fromJson(
json['WarmStartConfig'] as Map<String, dynamic>)
: null,
);
}