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