Volume.fromJson constructor
Volume.fromJson(
- Map json_
Implementation
Volume.fromJson(core.Map json_)
: this(
attached: json_.containsKey('attached')
? json_['attached'] as core.bool
: null,
autoGrownSizeGib: json_.containsKey('autoGrownSizeGib')
? json_['autoGrownSizeGib'] as core.String
: null,
bootVolume: json_.containsKey('bootVolume')
? json_['bootVolume'] as core.bool
: null,
currentSizeGib: json_.containsKey('currentSizeGib')
? json_['currentSizeGib'] as core.String
: null,
emergencySizeGib: json_.containsKey('emergencySizeGib')
? json_['emergencySizeGib'] as core.String
: null,
expireTime: json_.containsKey('expireTime')
? json_['expireTime'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
instances: json_.containsKey('instances')
? (json_['instances'] as core.List)
.map((value) => value as core.String)
.toList()
: 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,
maxSizeGib: json_.containsKey('maxSizeGib')
? json_['maxSizeGib'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notes:
json_.containsKey('notes') ? json_['notes'] as core.String : null,
originallyRequestedSizeGib:
json_.containsKey('originallyRequestedSizeGib')
? json_['originallyRequestedSizeGib'] as core.String
: null,
performanceTier: json_.containsKey('performanceTier')
? json_['performanceTier'] as core.String
: null,
pod: json_.containsKey('pod') ? json_['pod'] as core.String : null,
protocol: json_.containsKey('protocol')
? json_['protocol'] as core.String
: null,
remainingSpaceGib: json_.containsKey('remainingSpaceGib')
? json_['remainingSpaceGib'] as core.String
: null,
requestedSizeGib: json_.containsKey('requestedSizeGib')
? json_['requestedSizeGib'] as core.String
: null,
snapshotAutoDeleteBehavior:
json_.containsKey('snapshotAutoDeleteBehavior')
? json_['snapshotAutoDeleteBehavior'] as core.String
: null,
snapshotEnabled: json_.containsKey('snapshotEnabled')
? json_['snapshotEnabled'] as core.bool
: null,
snapshotReservationDetail:
json_.containsKey('snapshotReservationDetail')
? SnapshotReservationDetail.fromJson(
json_['snapshotReservationDetail']
as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
storageType: json_.containsKey('storageType')
? json_['storageType'] as core.String
: null,
workloadProfile: json_.containsKey('workloadProfile')
? json_['workloadProfile'] as core.String
: null,
);