Map<String, dynamic> toJson() { List<Map<String, dynamic>> timeline = this.timeline.map((i) => i.toJson()).toList(); return { 'timeline': timeline, }; }