PlayerTournamentResponse.fromMap constructor
Decodes PlayerTournamentResponse object from json map
Implementation
factory PlayerTournamentResponse.fromMap(Map<String, dynamic> json) =>
PlayerTournamentResponse(
idPlayer: json['idplayer'] == null ? null : json['idplayer'],
idSeason: json['idseason'] == null ? null : json['idseason'].toString(),
tournaments: json['tournaments'] == null
? null
: List<PlayerTournament>.from(
json['tournaments'].map((x) => PlayerTournament.fromMap(x))),
);