DescribeAlgorithmOutput.fromJson constructor
DescribeAlgorithmOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeAlgorithmOutput.fromJson(Map<String, dynamic> json) {
return DescribeAlgorithmOutput(
algorithmArn: json['AlgorithmArn'] as String,
algorithmName: json['AlgorithmName'] as String,
algorithmStatus: (json['AlgorithmStatus'] as String).toAlgorithmStatus(),
algorithmStatusDetails: AlgorithmStatusDetails.fromJson(
json['AlgorithmStatusDetails'] as Map<String, dynamic>),
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
trainingSpecification: TrainingSpecification.fromJson(
json['TrainingSpecification'] as Map<String, dynamic>),
algorithmDescription: json['AlgorithmDescription'] as String?,
certifyForMarketplace: json['CertifyForMarketplace'] as bool?,
inferenceSpecification: json['InferenceSpecification'] != null
? InferenceSpecification.fromJson(
json['InferenceSpecification'] as Map<String, dynamic>)
: null,
productId: json['ProductId'] as String?,
validationSpecification: json['ValidationSpecification'] != null
? AlgorithmValidationSpecification.fromJson(
json['ValidationSpecification'] as Map<String, dynamic>)
: null,
);
}