InstantSnapshot.fromJson constructor
InstantSnapshot.fromJson(
- Map json_
Implementation
InstantSnapshot.fromJson(core.Map json_)
: this(
architecture: json_.containsKey('architecture')
? json_['architecture'] as core.String
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
diskSizeGb: json_.containsKey('diskSizeGb')
? json_['diskSizeGb'] as core.String
: 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,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
resourceStatus: json_.containsKey('resourceStatus')
? InstantSnapshotResourceStatus.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,
selfLinkWithId: json_.containsKey('selfLinkWithId')
? json_['selfLinkWithId'] as core.String
: null,
sourceDisk: json_.containsKey('sourceDisk')
? json_['sourceDisk'] as core.String
: null,
sourceDiskId: json_.containsKey('sourceDiskId')
? json_['sourceDiskId'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);