RecentMatches.fromJson constructor
RecentMatches.fromJson(
- Map<String, dynamic> json
)
Implementation
RecentMatches.fromJson(Map<String, dynamic> json) {
matchinfo = MatchInfoDto.fromJson(json['matchinfo']!);
players = <PlayerDto>[];
json['players']!.forEach((v) {
players.add(PlayerDto.fromJson(v));
});
coaches = <CoachDto>[];
json['coaches']!.forEach((v) {
coaches.add(CoachDto.fromJson(v));
});
teams = <TeamDto>[];
json['teams'].forEach((v) {
teams.add(TeamDto.fromJson(v));
});
roundResuts = <RoundResultDto>[];
json['roundResuts'].forEach((v) {
roundResuts.add(RoundResultDto.fromJson(v));
});
}