RoundResultDto.fromJson constructor
RoundResultDto.fromJson(
- Map<String, dynamic> json
)
Implementation
RoundResultDto.fromJson(Map<String, dynamic> json) {
roundNum = json['roundNum'] ?? 0;
roundResult = json['roundResult'] ?? '';
roundCeremony = json['roundCeremony'] ?? '';
winningTeam = json['winningTeam'] ?? '';
bombPlanter = json['bombPlanter'] ?? '';
bombDefuser = json['bombDefuser'] ?? '';
plantRoundTime = json['plantRoundTime'] ?? 0;
playerPlantLocations = <PlayerLocationsDto>[];
json['playerPlantLocations']!.forEach((v) {
playerPlantLocations.add(PlayerLocationsDto.fromJson(v));
});
plantLocation = LocationDto.fromJson(json['plantLocation']!);
plantSite = json['plantSite'] ?? '';
defusePlayerLocations = <PlayerLocationsDto>[];
json['defusePlayerLocations']!.forEach((v) {
defusePlayerLocations.add(PlayerLocationsDto.fromJson(v));
});
defuseLocation = LocationDto.fromJson(json['difuseLocation']);
playerStats = <PlayerRoundStatsDto>[];
json['playerStats']!.forEach((v) {
playerStats.add(PlayerRoundStatsDto.fromJson(v));
});
defuseRoundTime = json['defuseRoundTime'] ?? 0;
roundResultCode = json['roundResultCode'] ?? '';
}