DescribeProcessingJobResponse.fromJson constructor
DescribeProcessingJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeProcessingJobResponse.fromJson(Map<String, dynamic> json) {
return DescribeProcessingJobResponse(
appSpecification: AppSpecification.fromJson(
json['AppSpecification'] as Map<String, dynamic>),
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
processingJobArn: json['ProcessingJobArn'] as String,
processingJobName: json['ProcessingJobName'] as String,
processingJobStatus:
(json['ProcessingJobStatus'] as String).toProcessingJobStatus(),
processingResources: ProcessingResources.fromJson(
json['ProcessingResources'] as Map<String, dynamic>),
autoMLJobArn: json['AutoMLJobArn'] as String?,
environment: (json['Environment'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
exitMessage: json['ExitMessage'] as String?,
experimentConfig: json['ExperimentConfig'] != null
? ExperimentConfig.fromJson(
json['ExperimentConfig'] as Map<String, dynamic>)
: null,
failureReason: json['FailureReason'] as String?,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
monitoringScheduleArn: json['MonitoringScheduleArn'] as String?,
networkConfig: json['NetworkConfig'] != null
? NetworkConfig.fromJson(
json['NetworkConfig'] as Map<String, dynamic>)
: null,
processingEndTime: timeStampFromJson(json['ProcessingEndTime']),
processingInputs: (json['ProcessingInputs'] as List?)
?.whereNotNull()
.map((e) => ProcessingInput.fromJson(e as Map<String, dynamic>))
.toList(),
processingOutputConfig: json['ProcessingOutputConfig'] != null
? ProcessingOutputConfig.fromJson(
json['ProcessingOutputConfig'] as Map<String, dynamic>)
: null,
processingStartTime: timeStampFromJson(json['ProcessingStartTime']),
roleArn: json['RoleArn'] as String?,
stoppingCondition: json['StoppingCondition'] != null
? ProcessingStoppingCondition.fromJson(
json['StoppingCondition'] as Map<String, dynamic>)
: null,
trainingJobArn: json['TrainingJobArn'] as String?,
);
}