DescribeTrainingJobResponse.fromJson constructor
DescribeTrainingJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeTrainingJobResponse.fromJson(Map<String, dynamic> json) {
return DescribeTrainingJobResponse(
algorithmSpecification: AlgorithmSpecification.fromJson(
json['AlgorithmSpecification'] as Map<String, dynamic>),
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
modelArtifacts: ModelArtifacts.fromJson(
json['ModelArtifacts'] as Map<String, dynamic>),
resourceConfig: ResourceConfig.fromJson(
json['ResourceConfig'] as Map<String, dynamic>),
secondaryStatus: (json['SecondaryStatus'] as String).toSecondaryStatus(),
stoppingCondition: StoppingCondition.fromJson(
json['StoppingCondition'] as Map<String, dynamic>),
trainingJobArn: json['TrainingJobArn'] as String,
trainingJobName: json['TrainingJobName'] as String,
trainingJobStatus:
(json['TrainingJobStatus'] as String).toTrainingJobStatus(),
autoMLJobArn: json['AutoMLJobArn'] as String?,
billableTimeInSeconds: json['BillableTimeInSeconds'] as int?,
checkpointConfig: json['CheckpointConfig'] != null
? CheckpointConfig.fromJson(
json['CheckpointConfig'] as Map<String, dynamic>)
: null,
debugHookConfig: json['DebugHookConfig'] != null
? DebugHookConfig.fromJson(
json['DebugHookConfig'] as Map<String, dynamic>)
: null,
debugRuleConfigurations: (json['DebugRuleConfigurations'] as List?)
?.whereNotNull()
.map(
(e) => DebugRuleConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
debugRuleEvaluationStatuses:
(json['DebugRuleEvaluationStatuses'] as List?)
?.whereNotNull()
.map((e) =>
DebugRuleEvaluationStatus.fromJson(e as Map<String, dynamic>))
.toList(),
enableInterContainerTrafficEncryption:
json['EnableInterContainerTrafficEncryption'] as bool?,
enableManagedSpotTraining: json['EnableManagedSpotTraining'] as bool?,
enableNetworkIsolation: json['EnableNetworkIsolation'] as bool?,
experimentConfig: json['ExperimentConfig'] != null
? ExperimentConfig.fromJson(
json['ExperimentConfig'] as Map<String, dynamic>)
: null,
failureReason: json['FailureReason'] as String?,
finalMetricDataList: (json['FinalMetricDataList'] as List?)
?.whereNotNull()
.map((e) => MetricData.fromJson(e as Map<String, dynamic>))
.toList(),
hyperParameters: (json['HyperParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
inputDataConfig: (json['InputDataConfig'] as List?)
?.whereNotNull()
.map((e) => Channel.fromJson(e as Map<String, dynamic>))
.toList(),
labelingJobArn: json['LabelingJobArn'] as String?,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
outputDataConfig: json['OutputDataConfig'] != null
? OutputDataConfig.fromJson(
json['OutputDataConfig'] as Map<String, dynamic>)
: null,
profilerConfig: json['ProfilerConfig'] != null
? ProfilerConfig.fromJson(
json['ProfilerConfig'] as Map<String, dynamic>)
: null,
profilerRuleConfigurations: (json['ProfilerRuleConfigurations'] as List?)
?.whereNotNull()
.map((e) =>
ProfilerRuleConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
profilerRuleEvaluationStatuses: (json['ProfilerRuleEvaluationStatuses']
as List?)
?.whereNotNull()
.map((e) =>
ProfilerRuleEvaluationStatus.fromJson(e as Map<String, dynamic>))
.toList(),
profilingStatus:
(json['ProfilingStatus'] as String?)?.toProfilingStatus(),
roleArn: json['RoleArn'] as String?,
secondaryStatusTransitions: (json['SecondaryStatusTransitions'] as List?)
?.whereNotNull()
.map((e) =>
SecondaryStatusTransition.fromJson(e as Map<String, dynamic>))
.toList(),
tensorBoardOutputConfig: json['TensorBoardOutputConfig'] != null
? TensorBoardOutputConfig.fromJson(
json['TensorBoardOutputConfig'] as Map<String, dynamic>)
: null,
trainingEndTime: timeStampFromJson(json['TrainingEndTime']),
trainingStartTime: timeStampFromJson(json['TrainingStartTime']),
trainingTimeInSeconds: json['TrainingTimeInSeconds'] as int?,
tuningJobArn: json['TuningJobArn'] as String?,
vpcConfig: json['VpcConfig'] != null
? VpcConfig.fromJson(json['VpcConfig'] as Map<String, dynamic>)
: null,
);
}