class Game { final String id; final String myTeam; final String opponentTeam; final String? myTeamLogo; // URL da imagem final String? opponentTeamLogo; // URL da imagem final String myScore; final String opponentScore; final String status; final String season; Game({ required this.id, required this.myTeam, required this.opponentTeam, this.myTeamLogo, this.opponentTeamLogo, required this.myScore, required this.opponentScore, required this.status, required this.season, }); // No seu factory, certifique-se de mapear os campos da tabela (ou de um JOIN) factory Game.fromMap(Map map) { return Game( id: map['id'], myTeam: map['my_team_name'], opponentTeam: map['opponent_team_name'], myTeamLogo: map['my_team_logo'], // Certifique-se que o Supabase retorna isto opponentTeamLogo: map['opponent_team_logo'], myScore: map['my_score'].toString(), opponentScore: map['opponent_score'].toString(), status: map['status'], season: map['season'], ); } }