TimelineEvent(Map<String, dynamic> json)

Creates a timeline event given JSON-encoded event data.

Source

factory TimelineEvent(Map<String, dynamic> json) {
  return new TimelineEvent._(
    json,
    json['name'],
    json['cat'],
    json['ph'],
    json['pid'],
    json['tid'],
    json['dur'] != null
      ? new Duration(microseconds: json['dur'])
      : null,
    json['ts'],
    json['tts'],
    json['args']
  );
}