GetSnapshotComputeV1Result.fromMap constructor
GetSnapshotComputeV1Result.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetSnapshotComputeV1Result.fromMap(Map<String, dynamic> map) {
return GetSnapshotComputeV1Result(
architecture: map['architecture'] as String,
autoCreated: map['autoCreated'] as bool,
chainName: map['chainName'] as String,
creationSizeBytes: map['creationSizeBytes'] as String,
creationTimestamp: map['creationTimestamp'] as String,
description: map['description'] as String,
diskSizeGb: map['diskSizeGb'] as String,
downloadBytes: map['downloadBytes'] as String,
guestOsFeatures: pulumi.Input.decodeList<GuestOsFeatureResponseComputeV1>(map['guestOsFeatures']!, (value) => GuestOsFeatureResponseComputeV1.fromMap((value 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>(),
locationHint: map['locationHint'] as String,
name: map['name'] as String,
satisfiesPzs: map['satisfiesPzs'] as bool,
selfLink: map['selfLink'] as String,
snapshotEncryptionKey: CustomerEncryptionKeyResponseComputeV1.fromMap((map['snapshotEncryptionKey']! as Map).cast<String, dynamic>()),
snapshotType: map['snapshotType'] as String,
sourceDisk: map['sourceDisk'] as String,
sourceDiskEncryptionKey: CustomerEncryptionKeyResponseComputeV1.fromMap((map['sourceDiskEncryptionKey']! as Map).cast<String, dynamic>()),
sourceDiskForRecoveryCheckpoint: map['sourceDiskForRecoveryCheckpoint'] as String,
sourceDiskId: map['sourceDiskId'] as String,
sourceSnapshotSchedulePolicy: map['sourceSnapshotSchedulePolicy'] as String,
sourceSnapshotSchedulePolicyId: map['sourceSnapshotSchedulePolicyId'] as String,
status: map['status'] as String,
storageBytes: map['storageBytes'] as String,
storageBytesStatus: map['storageBytesStatus'] as String,
storageLocations: (map['storageLocations'] as List).cast<String>(),
);
}