ModelPackageSummary.fromJson constructor
ModelPackageSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ModelPackageSummary.fromJson(Map<String, dynamic> json) {
return ModelPackageSummary(
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
modelPackageArn: json['ModelPackageArn'] as String,
modelPackageName: json['ModelPackageName'] as String,
modelPackageStatus:
(json['ModelPackageStatus'] as String).toModelPackageStatus(),
modelApprovalStatus:
(json['ModelApprovalStatus'] as String?)?.toModelApprovalStatus(),
modelPackageDescription: json['ModelPackageDescription'] as String?,
modelPackageGroupName: json['ModelPackageGroupName'] as String?,
modelPackageVersion: json['ModelPackageVersion'] as int?,
);
}