GetImageRecipeResult.fromMap constructor

GetImageRecipeResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetImageRecipeResult.fromMap(Map<String, dynamic> map) {
  return GetImageRecipeResult(
    amiTags: (map['amiTags'] as Map).cast<String, String>(),
    arn: map['arn'] as String,
    blockDeviceMappings: pulumi.Input.decodeList<GetImageRecipeBlockDeviceMapping>(map['blockDeviceMappings']!, (value) => GetImageRecipeBlockDeviceMapping.fromMap((value as Map).cast<String, dynamic>())),
    components: pulumi.Input.decodeList<GetImageRecipeComponent>(map['components']!, (value) => GetImageRecipeComponent.fromMap((value as Map).cast<String, dynamic>())),
    dateCreated: map['dateCreated'] as String,
    description: map['description'] as String,
    id: map['id'] as String,
    name: map['name'] as String,
    owner: map['owner'] as String,
    parentImage: map['parentImage'] as String,
    platform: map['platform'] as String,
    region: map['region'] as String,
    tags: (map['tags'] as Map).cast<String, String>(),
    userDataBase64: map['userDataBase64'] as String,
    version: map['version'] as String,
    workingDirectory: map['workingDirectory'] as String,
  );
}