import 'package:betting/data/model/res/competition_standings/competition_standings_model.dart';

class GoalScore {
  String? sId;
  String? playerId;
  String? competitionId;
  String? teamId;
  String? seasonId;
  String? season;
  Team? team;
  String? competition;
  String? editionId;
  String? name;
  String? goals;
  String? assists;
  String? played;
  String? teamName;
  String? teamStadium;
  String? teamLocation;
  int? iV;

  GoalScore(
      {this.sId,
        this.playerId,
        this.competitionId,
        this.teamId,
        this.seasonId,
        this.season,
        this.team,
        this.competition,
        this.editionId,
        this.name,
        this.goals,
        this.assists,
        this.played,
        this.teamName,
        this.teamStadium,
        this.teamLocation,
        this.iV});

  GoalScore.fromJson(Map<String, dynamic> json) {
    sId = json['_id'];
    playerId = json['playerId'];
    competitionId = json['competitionId'];
    teamId = json['teamId'];
    seasonId = json['seasonId'];
    season = json['season'];
    team = json['team'] != null ? Team.fromJson(json['team']) : null;
    competition = json['competition'];
    editionId = json['editionId'];
    name = json['name'];
    goals = json['goals'];
    assists = json['assists'];
    played = json['played'];
    teamName = json['teamName'];
    teamStadium = json['teamStadium'];
    teamLocation = json['teamLocation'];
    iV = json['__v'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['_id'] = sId;
    data['playerId'] = playerId;
    data['competitionId'] = competitionId;
    data['teamId'] = teamId;
    data['seasonId'] = seasonId;
    data['season'] = season;
    data['team'] = team;
    data['competition'] = competition;
    data['editionId'] = editionId;
    data['name'] = name;
    data['goals'] = goals;
    data['assists'] = assists;
    data['played'] = played;
    data['teamName'] = teamName;
    data['teamStadium'] = teamStadium;
    data['teamLocation'] = teamLocation;
    data['__v'] = iV;
    return data;
  }
}
