DescribeModelPackageOutput.fromJson constructor
DescribeModelPackageOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeModelPackageOutput.fromJson(Map<String, dynamic> json) {
return DescribeModelPackageOutput(
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
modelPackageArn: json['ModelPackageArn'] as String,
modelPackageName: json['ModelPackageName'] as String,
modelPackageStatus:
(json['ModelPackageStatus'] as String).toModelPackageStatus(),
modelPackageStatusDetails: ModelPackageStatusDetails.fromJson(
json['ModelPackageStatusDetails'] as Map<String, dynamic>),
approvalDescription: json['ApprovalDescription'] as String?,
certifyForMarketplace: json['CertifyForMarketplace'] as bool?,
createdBy: json['CreatedBy'] != null
? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
: null,
inferenceSpecification: json['InferenceSpecification'] != null
? InferenceSpecification.fromJson(
json['InferenceSpecification'] as Map<String, dynamic>)
: null,
lastModifiedBy: json['LastModifiedBy'] != null
? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
: null,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
metadataProperties: json['MetadataProperties'] != null
? MetadataProperties.fromJson(
json['MetadataProperties'] as Map<String, dynamic>)
: null,
modelApprovalStatus:
(json['ModelApprovalStatus'] as String?)?.toModelApprovalStatus(),
modelMetrics: json['ModelMetrics'] != null
? ModelMetrics.fromJson(json['ModelMetrics'] as Map<String, dynamic>)
: null,
modelPackageDescription: json['ModelPackageDescription'] as String?,
modelPackageGroupName: json['ModelPackageGroupName'] as String?,
modelPackageVersion: json['ModelPackageVersion'] as int?,
sourceAlgorithmSpecification: json['SourceAlgorithmSpecification'] != null
? SourceAlgorithmSpecification.fromJson(
json['SourceAlgorithmSpecification'] as Map<String, dynamic>)
: null,
validationSpecification: json['ValidationSpecification'] != null
? ModelPackageValidationSpecification.fromJson(
json['ValidationSpecification'] as Map<String, dynamic>)
: null,
);
}