ModelPackageGroup.fromJson constructor
ModelPackageGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ModelPackageGroup.fromJson(Map<String, dynamic> json) {
return ModelPackageGroup(
createdBy: json['CreatedBy'] != null
? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
: null,
creationTime: timeStampFromJson(json['CreationTime']),
modelPackageGroupArn: json['ModelPackageGroupArn'] as String?,
modelPackageGroupDescription:
json['ModelPackageGroupDescription'] as String?,
modelPackageGroupName: json['ModelPackageGroupName'] as String?,
modelPackageGroupStatus: (json['ModelPackageGroupStatus'] as String?)
?.toModelPackageGroupStatus(),
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}