ImageDetail.fromJson constructor
ImageDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ImageDetail.fromJson(Map<String, dynamic> json) {
return ImageDetail(
artifactMediaType: json['artifactMediaType'] as String?,
imageDigest: json['imageDigest'] as String?,
imageManifestMediaType: json['imageManifestMediaType'] as String?,
imagePushedAt: timeStampFromJson(json['imagePushedAt']),
imageScanFindingsSummary: json['imageScanFindingsSummary'] != null
? ImageScanFindingsSummary.fromJson(
json['imageScanFindingsSummary'] as Map<String, dynamic>)
: null,
imageScanStatus: json['imageScanStatus'] != null
? ImageScanStatus.fromJson(
json['imageScanStatus'] as Map<String, dynamic>)
: null,
imageSizeInBytes: json['imageSizeInBytes'] as int?,
imageTags: (json['imageTags'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
registryId: json['registryId'] as String?,
repositoryName: json['repositoryName'] as String?,
);
}