DiskImageTargetDetails.fromJson constructor
DiskImageTargetDetails.fromJson(
- Map json_
Implementation
DiskImageTargetDetails.fromJson(core.Map json_)
: this(
additionalLicenses: json_.containsKey('additionalLicenses')
? (json_['additionalLicenses'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
dataDiskImageImport: json_.containsKey('dataDiskImageImport')
? DataDiskImageImport.fromJson(json_['dataDiskImageImport']
as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
encryption: json_.containsKey('encryption')
? Encryption.fromJson(
json_['encryption'] as core.Map<core.String, core.dynamic>)
: null,
familyName: json_.containsKey('familyName')
? json_['familyName'] as core.String
: null,
imageName: json_.containsKey('imageName')
? json_['imageName'] 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,
osAdaptationParameters: json_.containsKey('osAdaptationParameters')
? ImageImportOsAdaptationParameters.fromJson(
json_['osAdaptationParameters']
as core.Map<core.String, core.dynamic>)
: null,
singleRegionStorage: json_.containsKey('singleRegionStorage')
? json_['singleRegionStorage'] as core.bool
: null,
targetProject: json_.containsKey('targetProject')
? json_['targetProject'] as core.String
: null,
);