DescribeAutoMLJobResponse.fromJson constructor
DescribeAutoMLJobResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeAutoMLJobResponse.fromJson(Map<String, dynamic> json) {
return DescribeAutoMLJobResponse(
autoMLJobArn: json['AutoMLJobArn'] as String,
autoMLJobName: json['AutoMLJobName'] as String,
autoMLJobSecondaryStatus: (json['AutoMLJobSecondaryStatus'] as String)
.toAutoMLJobSecondaryStatus(),
autoMLJobStatus: (json['AutoMLJobStatus'] as String).toAutoMLJobStatus(),
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
inputDataConfig: (json['InputDataConfig'] as List)
.whereNotNull()
.map((e) => AutoMLChannel.fromJson(e as Map<String, dynamic>))
.toList(),
lastModifiedTime:
nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
outputDataConfig: AutoMLOutputDataConfig.fromJson(
json['OutputDataConfig'] as Map<String, dynamic>),
roleArn: json['RoleArn'] as String,
autoMLJobArtifacts: json['AutoMLJobArtifacts'] != null
? AutoMLJobArtifacts.fromJson(
json['AutoMLJobArtifacts'] as Map<String, dynamic>)
: null,
autoMLJobConfig: json['AutoMLJobConfig'] != null
? AutoMLJobConfig.fromJson(
json['AutoMLJobConfig'] as Map<String, dynamic>)
: null,
autoMLJobObjective: json['AutoMLJobObjective'] != null
? AutoMLJobObjective.fromJson(
json['AutoMLJobObjective'] as Map<String, dynamic>)
: null,
bestCandidate: json['BestCandidate'] != null
? AutoMLCandidate.fromJson(
json['BestCandidate'] as Map<String, dynamic>)
: null,
endTime: timeStampFromJson(json['EndTime']),
failureReason: json['FailureReason'] as String?,
generateCandidateDefinitionsOnly:
json['GenerateCandidateDefinitionsOnly'] as bool?,
problemType: (json['ProblemType'] as String?)?.toProblemType(),
resolvedAttributes: json['ResolvedAttributes'] != null
? ResolvedAttributes.fromJson(
json['ResolvedAttributes'] as Map<String, dynamic>)
: null,
);
}