HyperParameterTrainingJobSummary.fromJson constructor

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

Implementation

factory HyperParameterTrainingJobSummary.fromJson(Map<String, dynamic> json) {
  return HyperParameterTrainingJobSummary(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    trainingJobArn: json['TrainingJobArn'] as String,
    trainingJobName: json['TrainingJobName'] as String,
    trainingJobStatus:
        (json['TrainingJobStatus'] as String).toTrainingJobStatus(),
    tunedHyperParameters:
        (json['TunedHyperParameters'] as Map<String, dynamic>)
            .map((k, e) => MapEntry(k, e as String)),
    failureReason: json['FailureReason'] as String?,
    finalHyperParameterTuningJobObjectiveMetric:
        json['FinalHyperParameterTuningJobObjectiveMetric'] != null
            ? FinalHyperParameterTuningJobObjectiveMetric.fromJson(
                json['FinalHyperParameterTuningJobObjectiveMetric']
                    as Map<String, dynamic>)
            : null,
    objectiveStatus:
        (json['ObjectiveStatus'] as String?)?.toObjectiveStatus(),
    trainingEndTime: timeStampFromJson(json['TrainingEndTime']),
    trainingJobDefinitionName: json['TrainingJobDefinitionName'] as String?,
    trainingStartTime: timeStampFromJson(json['TrainingStartTime']),
    tuningJobName: json['TuningJobName'] as String?,
  );
}