Snapshot.fromJson constructor
Snapshot.fromJson(
- Map json_
Implementation
Snapshot.fromJson(core.Map json_)
: this(
creationTime: json_.containsKey('creationTime')
? json_['creationTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
diskSizeBytes: json_.containsKey('diskSizeBytes')
? json_['diskSizeBytes'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
pubsubMetadata: json_.containsKey('pubsubMetadata')
? (json_['pubsubMetadata'] as core.List)
.map((value) => PubsubSnapshotMetadata.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
region: json_.containsKey('region')
? json_['region'] as core.String
: null,
sourceJobId: json_.containsKey('sourceJobId')
? json_['sourceJobId'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
ttl: json_.containsKey('ttl') ? json_['ttl'] as core.String : null,
);