GetImageComputeV1Result.fromMap constructor
GetImageComputeV1Result.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetImageComputeV1Result.fromMap(Map<String, dynamic> map) {
return GetImageComputeV1Result(
architecture: map['architecture'] as String,
archiveSizeBytes: map['archiveSizeBytes'] as String,
creationTimestamp: map['creationTimestamp'] as String,
deprecated: DeprecationStatusResponseComputeV1.fromMap((map['deprecated']! as Map).cast<String, dynamic>()),
description: map['description'] as String,
diskSizeGb: map['diskSizeGb'] as String,
family: map['family'] as String,
guestOsFeatures: pulumi.Input.decodeList<GuestOsFeatureResponseComputeV1>(map['guestOsFeatures']!, (value) => GuestOsFeatureResponseComputeV1.fromMap((value as Map).cast<String, dynamic>())),
imageEncryptionKey: CustomerEncryptionKeyResponseComputeV1.fromMap((map['imageEncryptionKey']! as Map).cast<String, dynamic>()),
kind: map['kind'] as String,
labelFingerprint: map['labelFingerprint'] as String,
labels: (map['labels'] as Map).cast<String, String>(),
licenseCodes: (map['licenseCodes'] as List).cast<String>(),
licenses: (map['licenses'] as List).cast<String>(),
name: map['name'] as String,
rawDisk: ImageRawDiskResponseComputeV1.fromMap((map['rawDisk']! as Map).cast<String, dynamic>()),
satisfiesPzs: map['satisfiesPzs'] as bool,
selfLink: map['selfLink'] as String,
shieldedInstanceInitialState: InitialStateConfigResponseComputeV1.fromMap((map['shieldedInstanceInitialState']! as Map).cast<String, dynamic>()),
sourceDisk: map['sourceDisk'] as String,
sourceDiskEncryptionKey: CustomerEncryptionKeyResponseComputeV1.fromMap((map['sourceDiskEncryptionKey']! as Map).cast<String, dynamic>()),
sourceDiskId: map['sourceDiskId'] as String,
sourceImage: map['sourceImage'] as String,
sourceImageEncryptionKey: CustomerEncryptionKeyResponseComputeV1.fromMap((map['sourceImageEncryptionKey']! as Map).cast<String, dynamic>()),
sourceImageId: map['sourceImageId'] as String,
sourceSnapshot: map['sourceSnapshot'] as String,
sourceSnapshotEncryptionKey: CustomerEncryptionKeyResponseComputeV1.fromMap((map['sourceSnapshotEncryptionKey']! as Map).cast<String, dynamic>()),
sourceSnapshotId: map['sourceSnapshotId'] as String,
sourceType: map['sourceType'] as String,
status: map['status'] as String,
storageLocations: (map['storageLocations'] as List).cast<String>(),
);
}