class LoggedInUser { final String name; final num totalPoints; final dynamic weeklyPlace; final String sharedId; const LoggedInUser({ required this.name, required this.totalPoints, required this.weeklyPlace, required this.sharedId, }); factory LoggedInUser.fromMap(Map map) { return LoggedInUser( name: map["name"], totalPoints: map["total_points"], weeklyPlace: map["weekly_place"], sharedId: map["shared_id"] ); } }