factory InsightList.fromMap(Map<String, dynamic> map) { return InsightList( total: map['total'], insights: List<Insight>.from(map['insights'].map((p) => Insight.fromMap(p))), ); }