TimelineEvent constructor
Creates a timeline event given JSON-encoded event data.
Implementation
factory TimelineEvent(Map<String, dynamic> json) {
return TimelineEvent._(
json,
json['name'],
json['cat'],
json['ph'],
json['pid'],
json['tid'],
json['dur'] != null
? Duration(microseconds: json['dur'])
: null,
json['tdur'] != null
? Duration(microseconds: json['tdur'])
: null,
json['ts'],
json['tts'],
json['args']
);
}