PersistentDiskDefaults.fromJson constructor
PersistentDiskDefaults.fromJson(
- Map json_
Implementation
PersistentDiskDefaults.fromJson(core.Map json_)
: this(
additionalLabels: json_.containsKey('additionalLabels')
? (json_['additionalLabels']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
diskName: json_.containsKey('diskName')
? json_['diskName'] as core.String
: null,
diskType: json_.containsKey('diskType')
? json_['diskType'] as core.String
: null,
encryption: json_.containsKey('encryption')
? Encryption.fromJson(
json_['encryption'] as core.Map<core.String, core.dynamic>)
: null,
sourceDiskNumber: json_.containsKey('sourceDiskNumber')
? json_['sourceDiskNumber'] as core.int
: null,
vmAttachmentDetails: json_.containsKey('vmAttachmentDetails')
? VmAttachmentDetails.fromJson(json_['vmAttachmentDetails']
as core.Map<core.String, core.dynamic>)
: null,
);