ContainerRecipe.fromJson constructor
ContainerRecipe.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ContainerRecipe.fromJson(Map<String, dynamic> json) {
return ContainerRecipe(
arn: json['arn'] as String?,
components: (json['components'] as List?)
?.whereNotNull()
.map(
(e) => ComponentConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
containerType: (json['containerType'] as String?)?.toContainerType(),
dateCreated: json['dateCreated'] as String?,
description: json['description'] as String?,
dockerfileTemplateData: json['dockerfileTemplateData'] as String?,
encrypted: json['encrypted'] as bool?,
kmsKeyId: json['kmsKeyId'] as String?,
name: json['name'] as String?,
owner: json['owner'] as String?,
parentImage: json['parentImage'] as String?,
platform: (json['platform'] as String?)?.toPlatform(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
targetRepository: json['targetRepository'] != null
? TargetContainerRepository.fromJson(
json['targetRepository'] as Map<String, dynamic>)
: null,
version: json['version'] as String?,
workingDirectory: json['workingDirectory'] as String?,
);
}