GetImageResult.fromMap constructor

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

Implementation

factory GetImageResult.fromMap(Map<String, dynamic> map) {
  return GetImageResult(
    architecture: map['architecture'] as String,
    archiveSizeBytes: map['archiveSizeBytes'] as String,
    creationTimestamp: map['creationTimestamp'] as String,
    deprecated: DeprecationStatusResponse.fromMap((map['deprecated']! as Map).cast<String, dynamic>()),
    description: map['description'] as String,
    diskSizeGb: map['diskSizeGb'] as String,
    enableConfidentialCompute: map['enableConfidentialCompute'] as bool,
    family: map['family'] as String,
    guestOsFeatures: pulumi.Input.decodeList<GuestOsFeatureResponse>(map['guestOsFeatures']!, (value) => GuestOsFeatureResponse.fromMap((value as Map).cast<String, dynamic>())),
    imageEncryptionKey: CustomerEncryptionKeyResponse.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>(),
    locked: map['locked'] as bool,
    name: map['name'] as String,
    rawDisk: ImageRawDiskResponse.fromMap((map['rawDisk']! as Map).cast<String, dynamic>()),
    rolloutOverride: RolloutPolicyResponse.fromMap((map['rolloutOverride']! as Map).cast<String, dynamic>()),
    satisfiesPzs: map['satisfiesPzs'] as bool,
    selfLink: map['selfLink'] as String,
    selfLinkWithId: map['selfLinkWithId'] as String,
    shieldedInstanceInitialState: InitialStateConfigResponse.fromMap((map['shieldedInstanceInitialState']! as Map).cast<String, dynamic>()),
    sourceDisk: map['sourceDisk'] as String,
    sourceDiskEncryptionKey: CustomerEncryptionKeyResponse.fromMap((map['sourceDiskEncryptionKey']! as Map).cast<String, dynamic>()),
    sourceDiskId: map['sourceDiskId'] as String,
    sourceImage: map['sourceImage'] as String,
    sourceImageEncryptionKey: CustomerEncryptionKeyResponse.fromMap((map['sourceImageEncryptionKey']! as Map).cast<String, dynamic>()),
    sourceImageId: map['sourceImageId'] as String,
    sourceSnapshot: map['sourceSnapshot'] as String,
    sourceSnapshotEncryptionKey: CustomerEncryptionKeyResponse.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>(),
    userLicenses: (map['userLicenses'] as List).cast<String>(),
  );
}