Snapshot.fromJson constructor
Snapshot.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Snapshot.fromJson(Map<String, dynamic> json) {
return Snapshot(
protocolVersion: _readInt(json['protocolVersion'], fallback: 0),
timestamp: _readInt(json['timestamp'], fallback: 0),
settings: DevToolsSettings.fromJson(_readMap(json['settings'])),
samples: _readList(json['samples'], Sample.fromJson),
batches: _readList(json['batches'], BatchSample.fromJson),
timeline: _readList(json['timeline'], TimelineEvent.fromJson),
);
}