toJson method

Map<String, dynamic> toJson()

Implementation

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

  return {
    'timeline': timeline,
  };
}