ImageSummary.fromJson constructor
ImageSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ImageSummary.fromJson(Map<String, dynamic> json) {
return ImageSummary(
arn: json['arn'] as String?,
dateCreated: json['dateCreated'] as String?,
name: json['name'] as String?,
osVersion: json['osVersion'] as String?,
outputResources: json['outputResources'] != null
? OutputResources.fromJson(
json['outputResources'] as Map<String, dynamic>)
: null,
owner: json['owner'] as String?,
platform: (json['platform'] as String?)?.toPlatform(),
state: json['state'] != null
? ImageState.fromJson(json['state'] as Map<String, dynamic>)
: null,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
type: (json['type'] as String?)?.toImageType(),
version: json['version'] as String?,
);
}