LocalDisk.fromJson constructor
LocalDisk.fromJson(
- Map json_
Implementation
LocalDisk.fromJson(core.Map json_)
: this(
autoDelete: json_.containsKey('autoDelete')
? json_['autoDelete'] as core.bool
: null,
boot: json_.containsKey('boot') ? json_['boot'] as core.bool : null,
deviceName: json_.containsKey('deviceName')
? json_['deviceName'] as core.String
: null,
guestOsFeatures: json_.containsKey('guestOsFeatures')
? (json_['guestOsFeatures'] as core.List)
.map((value) => RuntimeGuestOsFeature.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
index: json_.containsKey('index') ? json_['index'] as core.int : null,
initializeParams: json_.containsKey('initializeParams')
? LocalDiskInitializeParams.fromJson(json_['initializeParams']
as core.Map<core.String, core.dynamic>)
: null,
interface: json_.containsKey('interface')
? json_['interface'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
licenses: json_.containsKey('licenses')
? (json_['licenses'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
source: json_.containsKey('source')
? json_['source'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);