Disk.fromJson constructor
Disk.fromJson(
- Map json_
Implementation
Disk.fromJson(core.Map json_)
: this(
accessMode: json_.containsKey('accessMode')
? json_['accessMode'] as core.String
: null,
architecture: json_.containsKey('architecture')
? json_['architecture'] as core.String
: null,
asyncPrimaryDisk: json_.containsKey('asyncPrimaryDisk')
? DiskAsyncReplication.fromJson(json_['asyncPrimaryDisk']
as core.Map<core.String, core.dynamic>)
: null,
asyncSecondaryDisks: json_.containsKey('asyncSecondaryDisks')
? (json_['asyncSecondaryDisks']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
DiskAsyncReplicationList.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
diskEncryptionKey: json_.containsKey('diskEncryptionKey')
? CustomerEncryptionKey.fromJson(json_['diskEncryptionKey']
as core.Map<core.String, core.dynamic>)
: null,
enableConfidentialCompute:
json_.containsKey('enableConfidentialCompute')
? json_['enableConfidentialCompute'] as core.bool
: null,
guestOsFeatures: json_.containsKey('guestOsFeatures')
? (json_['guestOsFeatures'] as core.List)
.map((value) => GuestOsFeature.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
labelFingerprint: json_.containsKey('labelFingerprint')
? json_['labelFingerprint'] as core.String
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
lastAttachTimestamp: json_.containsKey('lastAttachTimestamp')
? json_['lastAttachTimestamp'] as core.String
: null,
lastDetachTimestamp: json_.containsKey('lastDetachTimestamp')
? json_['lastDetachTimestamp'] as core.String
: null,
licenseCodes: json_.containsKey('licenseCodes')
? (json_['licenseCodes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
licenses: json_.containsKey('licenses')
? (json_['licenses'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
locationHint: json_.containsKey('locationHint')
? json_['locationHint'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
options: json_.containsKey('options')
? json_['options'] as core.String
: null,
params: json_.containsKey('params')
? DiskParams.fromJson(
json_['params'] as core.Map<core.String, core.dynamic>)
: null,
physicalBlockSizeBytes: json_.containsKey('physicalBlockSizeBytes')
? json_['physicalBlockSizeBytes'] as core.String
: null,
provisionedIops: json_.containsKey('provisionedIops')
? json_['provisionedIops'] as core.String
: null,
provisionedThroughput: json_.containsKey('provisionedThroughput')
? json_['provisionedThroughput'] as core.String
: null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
replicaZones: json_.containsKey('replicaZones')
? (json_['replicaZones'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
resourcePolicies: json_.containsKey('resourcePolicies')
? (json_['resourcePolicies'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
resourceStatus: json_.containsKey('resourceStatus')
? DiskResourceStatus.fromJson(json_['resourceStatus']
as core.Map<core.String, core.dynamic>)
: null,
satisfiesPzi: json_.containsKey('satisfiesPzi')
? json_['satisfiesPzi'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
sizeGb: json_.containsKey('sizeGb')
? json_['sizeGb'] as core.String
: null,
sourceConsistencyGroupPolicy:
json_.containsKey('sourceConsistencyGroupPolicy')
? json_['sourceConsistencyGroupPolicy'] as core.String
: null,
sourceConsistencyGroupPolicyId:
json_.containsKey('sourceConsistencyGroupPolicyId')
? json_['sourceConsistencyGroupPolicyId'] as core.String
: null,
sourceDisk: json_.containsKey('sourceDisk')
? json_['sourceDisk'] as core.String
: null,
sourceDiskId: json_.containsKey('sourceDiskId')
? json_['sourceDiskId'] as core.String
: null,
sourceImage: json_.containsKey('sourceImage')
? json_['sourceImage'] as core.String
: null,
sourceImageEncryptionKey: json_
.containsKey('sourceImageEncryptionKey')
? CustomerEncryptionKey.fromJson(json_['sourceImageEncryptionKey']
as core.Map<core.String, core.dynamic>)
: null,
sourceImageId: json_.containsKey('sourceImageId')
? json_['sourceImageId'] as core.String
: null,
sourceInstantSnapshot: json_.containsKey('sourceInstantSnapshot')
? json_['sourceInstantSnapshot'] as core.String
: null,
sourceInstantSnapshotId: json_.containsKey('sourceInstantSnapshotId')
? json_['sourceInstantSnapshotId'] as core.String
: null,
sourceSnapshot: json_.containsKey('sourceSnapshot')
? json_['sourceSnapshot'] as core.String
: null,
sourceSnapshotEncryptionKey:
json_.containsKey('sourceSnapshotEncryptionKey')
? CustomerEncryptionKey.fromJson(
json_['sourceSnapshotEncryptionKey']
as core.Map<core.String, core.dynamic>)
: null,
sourceSnapshotId: json_.containsKey('sourceSnapshotId')
? json_['sourceSnapshotId'] as core.String
: null,
sourceStorageObject: json_.containsKey('sourceStorageObject')
? json_['sourceStorageObject'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
storagePool: json_.containsKey('storagePool')
? json_['storagePool'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
users: json_.containsKey('users')
? (json_['users'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);