ContainerImageInspection.fromJson constructor
ContainerImageInspection.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ContainerImageInspection.fromJson(Map<String, dynamic> json) => ContainerImageInspection(
image: ContainerImage.fromJson(Map<String, dynamic>.from(json['image'] as Map)),
target: ContainerImageDescriptor.fromJson(Map<String, dynamic>.from(json['target'] as Map)),
selectedManifest: json['selected_manifest'] == null
? null
: ContainerImageDescriptor.fromJson(Map<String, dynamic>.from(json['selected_manifest'] as Map)),
manifests: ((json['manifests'] as List?) ?? const [])
.map((entry) => ContainerImageManifest.fromJson(Map<String, dynamic>.from(entry as Map)))
.toList(),
config: json['config'] == null ? null : ContainerImageDescriptor.fromJson(Map<String, dynamic>.from(json['config'] as Map)),
layers: ((json['layers'] as List?) ?? const [])
.map((entry) => ContainerImageDescriptor.fromJson(Map<String, dynamic>.from(entry as Map)))
.toList(),
contentSize: json['content_size'] as int?,
);